Hovernet gives strange contours coordinates #6466
Unanswered
OmarAshkar
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi I have the following update on my post_transformers. Despite that this runs fine, the instance_map and type_map does not seem right to me.
I just want to remove the instance_info calculations as it is fairly slow. Related to #6046 . Thanks |
Beta Was this translation helpful? Give feedback.
3 replies
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.
-
Hello,
I am having a Hovernet post-processing workflow that I try to optimize it alittle. I had to cut down the images into 4000x4000 images before running the inference. After that, I have exported the coords contours that comes from
HoVerNetInstanceMapPostProcessingd
. Now the numbers doesn't make any sense to me as I said the image were 4000, but he contours coords get to be more than 20,000! What maybe wrong here?Another thing that the contours are not "succinate" as I can see from the implementation, so I don't know how to convert them back again to tamed contours.
Also, can I just turn off the transformers and save the two maps so I can do the statistics myself without monai? When I cannot remove
HoVerNetInstanceMapPostProcessingd
from the transformers the instance map is not exported.Any help is appreciated.
Thanks in advance.
Omar
EDIT
I have replace the
HoVerNetInstanceMapPostProcessingd
with the following code, but I get error for duplicate keys.I am not sure if I wrote that correctly. Unfortunately the keys argument is always very generic.
It fails on the HoVerNetNuclearTypePostProcessingd() as the inst_info key was not generated. Also, I want to save the type_map and instance_map. I assume the instance_map will be dist_map here, but how about the updated type_map to save?
Beta Was this translation helpful? Give feedback.
All reactions