QuocThangNguyen / deep-metric-learning-tsinghua-dogs

Dogs classification with Deep Metric Learning
62 stars 10 forks source link

Tsinghua Dogs dataset preparation #5

Closed HripsimeS closed 2 years ago

HripsimeS commented 2 years ago

@QuocThangNguyen Hello. I am having a bit problem in running prepare_TsinghuaDogs.py script for dataset preparation and getting error IndexError: list index out of range. Just wanted to check with you if I am doing things correctly.

So in data folder I opened TsinghuaDogs where I opened the following folders High-Annotations high-resolution TrainAndValList train val

Is this a correct data directory structure before running a prepare_TsinghuaDogs.py ?

image

image

HripsimeS commented 2 years ago

@QuocThangNguyen the issue is fixed by manually downloading all files and then modifying prepare_TsinghuaDogs.py where I removed all downloading and unzipping parts, then just used lines for preparing train and validation sets to split dataset.

QuocThangNguyen commented 2 years ago

Maybe there are some changes in the dataset since I last looked 2 years ago. Glat that you can fix it. Feel free to ask if you have any questions @HripsimeS