Open sunwayforever opened 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".
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.
although the ids is split into
train
andval
, you are always sampling from the whole ids