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

Add sampler that checks if there are a minimum number of instances in the volume #60

Merged
merged 2 commits into from
Jun 3, 2022

Conversation

JonasHell
Copy link
Contributor

When there is only one instance in the volume, the RF is trained with only one class. This leads to an assertion error in _predict_rf() in shallow2deep_dataset.py. By applying one of the new samplers this issue can be fixed. Therefore, I added the sampler as an argument to prepare_shallow2deep(), while keeping the default behavior of having the MinForegroundSampler.

Copy link
Owner

@constantinpape constantinpape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@constantinpape constantinpape merged commit 4411d9e into constantinpape:main Jun 3, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants