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

we should not filter students predictions #204

Open
jvkubm opened this issue Jan 24, 2024 · 3 comments
Open

we should not filter students predictions #204

jvkubm opened this issue Jan 24, 2024 · 3 comments

Comments

@jvkubm
Copy link

jvkubm commented Jan 24, 2024

loss = self.loss(prediction * label_filter, labels * label_filter)

filtering students prediction caused my model to predict far too many voxels/lesions than it should. I think it should not be done here. Same in line 57

@anwai98
Copy link
Collaborator

anwai98 commented Jan 24, 2024

Hmm okay. I think you can update this by not passing the label filters in the MeanTeacherTrainer (and similar in the lines below for the other training and validation functions)

or, an easier option would be to update the loss (and metric) functions to not consider the label filter at all, regardless of it's passed to the __call__ method or not.

@jvkubm
Copy link
Author

jvkubm commented Jan 24, 2024

yes I simply don't multiply prediction with label_filter, but wanted to let you know, coz it seems to me it should be formulated like this:
loss = self.loss(prediction, labels * label_filter)
or am I missing sth?

@anwai98
Copy link
Collaborator

anwai98 commented Jan 24, 2024

You don't need to mask the labels either. I think this should suffice:

loss = self.loss(predictions, labels)

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

2 participants