8000 balanced sampler issue · Issue #9 · MCG-NJU/DDM · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

balanced sampler issue #9

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

Open
JaejunHwang opened this issue May 3, 2023 · 0 comments
Open

balanced sampler issue #9

JaejunHwang opened this issue May 3, 2023 · 0 comments

Comments

@JaejunHwang
Copy link
JaejunHwang commented May 3, 2023

When I try to use --balance-batch option, there is a problem.

In MultiFDataset
def _get_training_samples(self, index): indices = [] for class_ in self.labels_set: real_index = self.label_to_indices[class_][int(index * self.ratios[class_])] indices.append(real_index) return indices

at the part of (index * self.ratios[class_]), their range is over the self.label_to_indices itself.

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
0