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

img2txt_retrieval directory doesn't exist #9

Closed
ahmedjaafar6 opened this issue Aug 11, 2023 · 2 comments
Closed

img2txt_retrieval directory doesn't exist #9

ahmedjaafar6 opened this issue Aug 11, 2023 · 2 comments

Comments

@ahmedjaafar6
Copy link

Hello,

I ran into this error
FileNotFoundError: [Errno 2] No such file or directory: './img2txt_retrieval/clothing_unseen_ow.txt'
when I was running the Image To Text section
python img2txt_retrieval.py --log pretrain/ade_ow_clothing --sample_num 1

The error is from img2txt_retrieval.py line 80. I checked and it's true, there is no directory called img2txt_retrieval. I checked inside the clothing dataset (the dataset I'm testing on) and this directory doesn't exist there either. Is this a bug in the code or did you forget to upload this directory?

Thank you

@haoosz
Copy link
Owner

haoosz commented Aug 16, 2023

This is a written directory. You can simply make the directory before f.write. I have updated the code and you can directly run the code now. Thank you.

@ahmedjaafar6
Copy link
Author

It worked, thank you!

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

2 participants