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: [Errno 2] No such file or directory: 'E:\\Pycharmproject\\SuGaR-main\\data\\66\\images\\IMG_1145.images #214

Open
GHXFQ opened this issue Sep 23, 2024 · 5 comments

Comments

@GHXFQ
Copy link

GHXFQ commented Sep 23, 2024

No description provided.

@3406212002
Copy link

check carefully whether this image exists?

@GHXFQ
Copy link
Author

GHXFQ commented Oct 2, 2024 via email

@zqdsdfg
Copy link

zqdsdfg commented Oct 7, 2024

I have the same problem. Have you solved it? Can you share your solution?

@GHXFQ
Copy link
Author

GHXFQ commented Oct 7, 2024 via email

@Coremar2
Copy link

Coremar2 commented Mar 18, 2025

I thing I might have a solution to this, but not sure if it actually applies to your case as mine was slightly different.

Short version

Try to rename those files in \66\images\ from ".JPG" to ".images" and run the script. Or check the cameras.json file if you are using pretrained gs output. (more about this in the long version)

Long and boring version

I had similar problem, but in my case the error said ..../miniconda3/envs/sugar/basket/images/DSC_3131.JPG.JPG - even though the file was just DSC_3131.JPG (without the second .JPG). I was running the train_full_pipeline.py script with --gs_output_dir parameter and the problem was about the file in the gs output folder.

When I run the script I noticed theese lines right before the error:

Loading config miniconda3/envs/sugar/output/basket_out/...
Performing train/eval split...
Found image extension .JPG

aparently it find the .JPG extension somewhere in the "basket_out" folder and was adding it to the file name for some reason.
so I opened the "cameras.json" file contained in the "basket_out" folder and in that file all images were correctly named (DSC_3131.JPG (without the second .JPG)). I then deleted all the ".JPG" suffix written in the "cameras.json" file and voila the script started to run sucessfully as it was now adding the .JPG to just the name without the suffix. Not sure what the result will be as it is still runing while I'm writing this. but it seens to have solved this problem.
I think I could instead rename the files to be with two ".JPG" suffixes and it would also work.

If your case has similar cause I would try to rename first file (i guess IMG_1145.JPG in your case) to IMG_1145.images and try to run it. If it shows this error for the next file now, it might be the solution.(workaround really). Or check if your confing file (possibly cameras.json) is storing the file names with ".JPG" and not with ".images"

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

4 participants