Closed yhhhli closed 5 years ago
You may check the directory you running the code. It needs to be the . in ./data
Hi Josiane,
Sorry for the late reply. Yes, I've solved it, as the author said, the directory is wrong.
The error FileNotFoundError: [Errno 2] No such file or directory: './data/nuswide_81/images/93478_2084149655_e5049606da_m.jpg
, is because
of ./ does not return to the parent directory, but ../ do. So all you need
to do is to write a python program, which adds . in the beginning of each
line in the file nuswide81/images/train.txt
On Thu, Feb 21, 2019 at 2:27 AM Josiane Rodrigues da Silva < notifications@github.com> wrote:
Hi @LiYuhang20 https://github.com/LiYuhang20,
I had the same problem. Did you solve it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/thuml/HashNet/issues/24#issuecomment-465698441, or mute the thread https://github.com/notifications/unsubscribe-auth/AqBmlIZMGbKeV51b7DBQPDGs648gl9oMks5vPZOlgaJpZM4Z6set .
thank you! :)
Hi, I followed the instructions in the markdown file, but i got some problem with the nus_wide dataset.
I noticed that you changed the directory
./data/nus_wide
to.data/nuswide_81
, so I change the code in train.pyAnd when I run the train.py using the following command:
python train.py --gpu_id 0 --dataset nus_wide --prefix resnet50_hashnet --hash_bit 48 --net ResNet50 --lr 0.0003 --class_num 1.0
There is a no such file error:
And when I run it another time, it says another jpg that do not exist in images directory. However, I'm sure those jpg are in the images directory. Could you please help me fix that? Thank you!
And I use pytorch 0.4.0, would that be the reason?