ChunML / ssd-tf2

A super clean implementation of SSD (Single Shot MultiBox Detector) made possible by Tensorflow 2.0
MIT License
115 stars 54 forks source link

it seems you are training and validating on the same dataset? #26

Open sunwayforever opened 3 years ago

sunwayforever commented 3 years ago

although the ids is split into train and val, you are always sampling from the whole ids

AkshayPS12 commented 3 years ago

Hi @sunwayforever if you see in voc_data.py in the generate function , the indices of train and val data are separated and they are being used for "sampling".

showyamessage commented 2 years ago

Yes, they are separated. But get_annotation and get_image functions get their filenames from self.ids. I think, transfering the filename (calculated in generate anyway) directly to get_annotation and get_image should solve this issue.