Skip to content
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: No such file or directory: '../sparse/0/images.txt' #26

Open
Starak-x opened this issue Aug 21, 2024 · 4 comments
Open

Comments

@Starak-x
Copy link

Now I'm following the data preparation, but I met the problem about the txt file.
I already extracted the LLFF dataset and tried to run colmap like:
python tools/colmap_llff.py

But I have a FileNotFoundError: No such file or directory: '../sparse/0/images.txt' error because The file I extracted is a bin file.
I tried changing the bin file to a txt file, But I failed to use it.

Could you explain how to use this file if you were able to use this code?

@jiaw-z
Copy link
Owner

jiaw-z commented Aug 21, 2024

You may need to check the path to the dataset used in colmap_llff.py. I recommend using an absolute path to determine the path to llff. This is the code I used and I will re-run this code later and check for this issue.

@Starak-x
Copy link
Author

Starak-x commented Aug 22, 2024

I used the absolute path, but I could not find a txt file; instead, there is an 'images.bin' file. When I changed 'txt' to 'bin' in colmap_llff.py, the following error occurred:
image
image

@twowwj
Copy link

twowwj commented Aug 22, 2024

I also didn't find the "image.txt".
"image.bin" is available.

@jiaw-z
Copy link
Owner

jiaw-z commented Aug 29, 2024

Hello, I have downloaded the original llff data and re-ran the code. The original data only has "image.bin". However, if the path is correct, the code will automatically generate a txt file based on the .bin corresponding folder:
image
After this step in the code, a txt file will appear in the corresponding folder in the data.
image
Maybe you can check that the absolute path is pointing to the address where the original data is located instead of the address that is soft-linked into the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants