layumi / University1652-Baseline

ACM Multimedia2020 University-1652: A Multi-view Multi-source Benchmark for Drone-based Geo-localization :helicopter: annotates 1652 buildings in 72 universities around the world.
https://arxiv.org/abs/2002.12186
MIT License
485 stars 72 forks source link

UserWarning: Found no valid file for the classes 1057 #46

Open chennanhua001 opened 1 year ago

chennanhua001 commented 1 year ago

Hello, I am running train.py with the following problem.

UserWarning: Found no valid file for the classes 1057, 1100, 1116, 1237, 1326, 1350, 1351, 1355, 1356, 1357, 1358, 1453. Supported extensions are: .jpg, .jpeg, .png, .ppm, .bmp, .pgm, .tif, .tiff, .webp

This is caused by the fact that there are no files (images) in the folder 1057, 1100 etc. under "/University-1652/train/google" during the train process. I would like to ask how to solve this problem.

layumi commented 1 year ago

Hi @chennanhua001

Yes. Some google image folders are empty due to the indoor scene or duplicate images. Please use the dataset class I write. https://github.com/layumi/University1652-Baseline/blob/master/train.py#L163