Hi, I followed the instructions in the markdown file, but i got some problem with the nus_wide dataset.
elif config["dataset"] == "nus_wide":
config["data"] = {"train_set1": {"list_path": "../data/nuswide_81/train.txt", "batch_size": 36}, \
"train_set2": {"list_path": "../data/nuswide_81/train.txt", "batch_size": 36}}
File "train.py", line 279, in <module>
train(config)
File "train.py", line 199, in train
inputs1, labels1 = iter1.next()
File "/home/yuhang/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 286, in __next__
return self._process_next_batch(batch)
File "/home/yuhang/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 307, in _process_next_batch
raise batch.exc_type(batch.exc_msg)
FileNotFoundError: Traceback (most recent call last):
File "/home/yuhang/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 57, in _worker_loop
samples = collate_fn([dataset[i] for i in batch_indices])
File "/home/yuhang/anaconda3/lib/python3.5/site-packages/torch/utils/data/dataloader.py", line 57, in <listcomp>
samples = collate_fn([dataset[i] for i in batch_indices])
File "/tmp/liyuhang/Hashnet/src/data_list.py", line 89, in __getitem__
img = self.loader(path)
File "/tmp/liyuhang/Hashnet/src/data_list.py", line 45, in default_loader
return pil_loader(path)
File "/tmp/liyuhang/Hashnet/src/data_list.py", line 26, in pil_loader
with open(path, 'rb') as f:
FileNotFoundError: [Errno 2] No such file or directory: './data/nuswide_81/images/93478_2084149655_e5049606da_m.jpg'
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!