-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileNotFoundError: [Errno 2] No such file or directory: '../datasets/rplan/list.txt' #18
Comments
hey, u should writ a script. import os
def get_image_number(name):
return int(name.split(".")[0])
def write_filenames_to_txt(directory, txt_file):
json_names = os.listdir(directory)
json_names = sorted(json_names, key=get_image_number)
with open(txt_file, 'w') as f:
for filename in json_names:
f.write(filename + '\n')
write_filenames_to_txt("plan_json", "list.txt") |
@YuP2905 Hi, thanks for the suggestion. I tried the script and made the list.txt file, then placed it inside the rplan folder. But I am getting this issue:
|
I think u should check your path |
Hi, I have the same problem. The error message is exactly the same as yours. In which path did you put the list.txt file to solve this problem? |
Sorry, I haven't focused on this project for a long time. But I think you can find out original dataset. That's how I solved this issue at that time. |
how to solve it?
The text was updated successfully, but these errors were encountered: