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 #37

Open
Rxx01 opened this issue Oct 17, 2023 · 0 comments
Open

FileNotFoundError: [Errno 2] No such file or directory #37

Rxx01 opened this issue Oct 17, 2023 · 0 comments

Comments

@Rxx01
Copy link

Rxx01 commented Oct 17, 2023

when i run :

python train.py --config configs/compcos/mit/compcos_cw.yml 

in windows,
cannot find the house-design-exterior-ancient-greek-temple-views-portrait-with-characteristics-of-greek-architecture-designs-great-ancient-building-with-characteristics-of-greek-architecture-designs-600x480.jpg
**The image is clearly in the folder, but it cannot be found.**Could it be that the filename is too long?

Traceback (most recent call last):
File "C:\Users\rxx\Desktop\czsl-main\train.py", line 232, in
main()
File "C:\Users\rxx\Desktop\czsl-main\train.py", line 38, in main
trainset = dset.CompositionDataset(
File "C:\Users\rxx\Desktop\czsl-main\data\dataset.py", line 204, in init
self.generate_features(feat_file, model)
File "C:\Users\rxx\Desktop\czsl-main\data\dataset.py", line 404, in generate_features
imgs = list(map(self.loader, files))
File "C:\Users\rxx\Desktop\czsl-main\data\dataset.py", line 25, in call
img = Image.open(ospj(self.root_dir,img)).convert('RGB') #We don't want alpha
File "C:\Users\rxx.conda\envs\test\lib\site-packages\PIL\Image.py", line 3218, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'DataBase\mit-states\images\ancient_building\house-design-exterior-ancient-greek-temple-views-portrait-with-characteristics-of-greek-architecture-designs-great-ancient-building-with-characteristics-of-greek-architecture-designs-600x480.jpg'

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

1 participant