Closed who1129 closed 4 years ago
lbl_file = data_file['lbl'] lbl = PIL.Image.open(lbl_file) lbl = np.array(lbl, dtype=np.int32) lbl[lbl == 255] = -1 if self._transform: return self.transform(img, lbl) else: return img, lbl
I found this code on voc.py dataset class. Can you tell me what this -1 value means??
load label
I found this code on voc.py dataset class. Can you tell me what this -1 value means??