Getting all Nan values in prediction when testing model loaded from checkpoint #12480
Unanswered
valecorbetta
asked this question in
code help: CV
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have trained a UNetr model for semantic segmentation of 3D CT images. I wanted to test the my test set, however when run the model on it the predictions only contain Nan values.
The model is defined as follows:
And the test script is as follows:
When I print
probabilities[0]
, where the predictions are saved, there are only NaN values. I have already checked and there are no NaN values in the test samples. I'm thinking that maybe I am loading the model incorrectly, since in validation during training it was working fine. I have also tested the loaded model on the validation set used during training and it does not work (even though it was working correctly during training). Any suggestions? Thanks in advance.Beta Was this translation helpful? Give feedback.
All reactions