duanzhiihao / RAPiD

RAPiD: Rotation-Aware People Detection in Overhead Fisheye Images (CVPR 2020 Workshops)
http://vip.bu.edu/rapid/
Other
213 stars 63 forks source link

Training attempts to read non-image file and stops #36

Open drjoeCV opened 2 years ago

drjoeCV commented 2 years ago

Line 196 in train.py creates a list of image paths eval_img_paths = [os.path.join('./images/',s) for s in eval_img_names] but since the./ images folder contains two subfolders (readme and tiny_val) they will be included in the list. This will cause an IsADirectoryError from PIL when Image.open(img_path) is called later.

duanzhiihao commented 2 years ago

Thanks. I just fixed it.