-
I have a problem that I don't have a solution to fix as my images are already resized to specific dimension. I am using HoverNet Model and my images has been cropped to special dimensions. Now, running inference, I am getting.
|
Beta Was this translation helpful? Give feedback.
Answered by
KumoLiu
May 17, 2023
Replies: 1 comment 4 replies
-
Hi @sardnar, could you please share more information such as how you cropped your data, then I could take a deep look at it, thanks! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @sardnar, thanks now I can reproduce the error.
I suppose you were just following the default value set in the tutorial.
https://github.com/Project-MONAI/tutorials/blob/3dfe68f941d2768c723fdbfbfb54bc41f265cf0c/pathology/hovernet/inference.py#L83
The default value for the
sobel_kernel_size
is 21, and the padding size is calculated from it. So If your input size only has 5, I would suggest you setsobel_kernel_size
smaller.MONAI/monai/networks/layers/simplelayers.py
Line 246 in e084885
Hope it can help you, thanks!