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

Assertion t >= 0 && t < n_classes failed. #26

Open
xings-sdnu opened this issue Oct 31, 2022 · 3 comments
Open

Assertion t >= 0 && t < n_classes failed. #26

xings-sdnu opened this issue Oct 31, 2022 · 3 comments

Comments

@xings-sdnu
Copy link

Sorry to bother you, I have encontered a probelm: Assertion t >= 0 && t < n_classes failed when I try to use your model to my datasets, I have changed the num_class in my datasets, but I still face the problem, can u help me? here is my change:
self.classes = list(range(2))
self.image_classes = calc_classes_per_image(self.masks, 2, cache_file)

@YuvalNirkin
Copy link
Owner

Did you also specify num_classes in the arguments for the model?

@qjl988
Copy link

qjl988 commented Dec 24, 2023

Hi,Did you end up getting that fixed?

@xings-sdnu
Copy link
Author

xings-sdnu commented Jan 18, 2024 via email

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

3 participants