Skip to content
Discussion options

You must be logged in to vote

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 set sobel_kernel_size smaller.

_paddings = [(k.shape[0] - 1) // 2 for k in _kernels]

Hope it can help you, thanks!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@sardnar
Comment options

@KumoLiu
Comment options

@sardnar
Comment options

@KumoLiu
Comment options

Answer selected by sardnar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants