Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The number of label without anno #8

Open
wdczz opened this issue Dec 13, 2024 · 0 comments
Open

The number of label without anno #8

wdczz opened this issue Dec 13, 2024 · 0 comments

Comments

@wdczz
Copy link

wdczz commented Dec 13, 2024

`       
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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant