`
if self.split=='train' or self.split=='trainval':
#print('----------------------')
if '%' in self.labeled_point:
r = float(self.labeled_point[:-1]) / 100
num_pts = len(data[0]) #data.shape[0]
num_with_anno = max(int(num_pts * r), 1)
num_without_anno = num_pts - num_with_anno
idx_without_anno = np.random.choice(num_pts, num_without_anno, replace=False)
label[idx_without_anno]= -100 #Unlabeled
else:
num_pts = len(data[0]) #data.shape[0]
num_with_anno = int(self.labeled_point)
num_without_anno = num_pts - num_with_anno
idx_without_anno = np.random.choice(num_pts, num_without_anno, replace=False)
label[idx_without_anno] = -100
I think only the percentage of weakly supervised labels is fixed here, but due to random sampling, the weakly supervised labels are not actually fixed. Is this correct?
I think only the percentage of weakly supervised labels is fixed here, but due to random sampling, the weakly supervised labels are not actually fixed. Is this correct?