Setting out_class in Hovernet pathology tutorial #1180
Replies: 7 comments 5 replies
-
Hi @KumoLiu , Could you please help share some comments about this question? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
-
Hi @OmarAshkar, could you please share more information about the error so I could take a look at it? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi @KumoLiu. Thanks for your help. I am pasting here the error message I am getting.
|
Beta Was this translation helpful? Give feedback.
-
Hi @OmarAshkar, seems the shape of your ground truth is incorrect. Did you consider the background class in your 4 classes? If not, I think |
Beta Was this translation helpful? Give feedback.
-
@KumoLiu. Yes, I am pretty sure my classes are total 4. Background included. But I will check also |
Beta Was this translation helpful? Give feedback.
-
Hi @KumoLiu. I have asserted the exported type_map has 4 classes using assert_array_equal. What else do you suggest to check the labels? |
Beta Was this translation helpful? Give feedback.
-
Hi @OmarAshkar, from the error message, I could see that your label has 5 channels. So could you please check the shape of your type label? Something like this:
I think maybe you forgot to change tutorials/pathology/hovernet/training.py Line 217 in c60dc6d Thanks! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I am having a problem running the current hovernet tutorial using out_class other than 5. It gives me an incorrect tensor dimension error. My data has only 4 classes
To Reproduce
Steps to reproduce the behavior:
Beta Was this translation helpful? Give feedback.
All reactions