def get_metain(self, clsid, metaind):
meta_img, meta_lab = self.get_metaimg(clsid, metaind)
if meta_lab:
for lab in meta_lab:
# print(lab)
img, mask = self.get_img_mask(meta_img, lab, merge=False) # <<<<<<------------
if mask is None:
continue
return (img, mask)
The line with <- symbol is strange. In each loop, the mask will be covered by a new return value, so that mask will only contain 1 bounding box no matter how many boxes there is in images. So should it be modified?
Here is code in
class MetaDataset
indataset.py
:The line with
<-
symbol is strange. In each loop, themask
will be covered by a new return value, so that mask will only contain 1 bounding box no matter how many boxes there is in images. So should it be modified?Thanks.