SuGaR icon indicating copy to clipboard operation
SuGaR copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'E:\\Pycharmproject\\SuGaR-main\\data\\66\\images\\IMG_1145.images

Open GHXFQ opened this issue 1 year ago • 5 comments

GHXFQ avatar Sep 23 '24 12:09 GHXFQ

check carefully whether this image exists?

3406212002 avatar Oct 02 '24 07:10 3406212002

It exists, but the picture file is the suffix of JPG. I don't know why the error is reported in this format.

发自我的iPhone

------------------ Original ------------------ From: Guodong Xu @.> Date: Wed,Oct 2,2024 3:10 PM To: Anttwo/SuGaR @.> Cc: GHXFQ @.>, Author @.> Subject: Re: [Anttwo/SuGaR] FileNotFoundError: [Errno 2] No such file ordirectory: 'E:\Pycharmproject\SuGaR-main\data\66\images\IMG_1145.images(Issue #214)

GHXFQ avatar Oct 02 '24 07:10 GHXFQ

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

zqdsdfg avatar Oct 07 '24 13:10 zqdsdfg

I'm really sorry. I'm still looking for a solution, but it's still not possible. If you solve this problem, please let me know. Thank you.

发自我的iPhone

------------------ Original ------------------ From: zqdsdfg @.> Date: Mon,Oct 7,2024 9:08 PM To: Anttwo/SuGaR @.> Cc: GHXFQ @.>, Author @.> Subject: Re: [Anttwo/SuGaR] FileNotFoundError: [Errno 2] No such file ordirectory: 'E:\Pycharmproject\SuGaR-main\data\66\images\IMG_1145.images(Issue #214)

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

GHXFQ avatar Oct 07 '24 13:10 GHXFQ

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"

Coremar2 avatar Mar 18 '25 21:03 Coremar2