DDColor icon indicating copy to clipboard operation
DDColor copied to clipboard

File not found

Open weixin6666 opened this issue 1 year ago • 4 comments

Blogger hello, would like to ask a question, when I run the train.py script, encountered FileNotFoundError: [Errno 2] No such file or directory: 'data_list/imagenet.txt' this problem. I have imagenet.txt in the data_list file, but it keeps saying it can't find it. And this imagenet.txt is generated when you run data_list/get_meta_file.py (I'm afraid I got this wrong)

weixin6666 avatar May 01 '24 09:05 weixin6666

In train_ddcolor.yml, the absolute path to imagenet.txt was changed to not display this error, but the display could not find imagenet_val_5k.txt. this file seems to have not been generated before running get_meta_file.py

weixin6666 avatar May 01 '24 13:05 weixin6666

Sorry, I didn't get it.

data_list/get_meta_file.py is a sample script for generating the data list file needed for training. Before starting the training, you need to ensure that all data list files in the training configuration (train_ddcolor.yml) have been successfully generated.

piddnad avatar May 03 '24 19:05 piddnad

But I don't know where to generate imagenet_val_5k.txt, I don't see the relevant code in this script (data_list/get_meta_file.py ), only see the code to produce imagenet.txt

weixin6666 avatar May 05 '24 09:05 weixin6666

Hi, @weixin6666 , imagenet_val_5k is actually the first 5,000 images in imagenet validation set, you can edit the script to generate it.

piddnad avatar May 06 '24 03:05 piddnad