MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

Add `CalcualteInstanceSegmentationMap` Transform

Open KumoLiu opened this issue 3 years ago • 4 comments

Fixes #5100.

Description

Add a post transform to process NP branch output(an output branch in HoVerNet) which turns the probability map from the network into the instance segmentation result.

Types of changes

  • [x] Non-breaking change (fix or new feature that would not break existing functionality).
  • [x] New tests added to cover the changes.
  • [x] Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • [x] Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • [x] In-line docstrings updated.
  • [x] Documentation updated, tested make html command in the docs/ folder.

KumoLiu avatar Sep 19 '22 12:09 KumoLiu

@KumoLiu Could you please review items in the PR descriptions, check everything that you have already done, and remove any one that is not relevant (e.g. Breaking change...)?

bhashemian avatar Sep 21 '22 13:09 bhashemian

Hi @drbeh, I have reviewed items in the PR descriptions, check everything that I have already done, and removed irrelevant lines. Could you please help review this PR and let me know if you have any comments? Thanks in advance!

KumoLiu avatar Sep 22 '22 05:09 KumoLiu

Hi @JHancox @Nic-Ma @drbeh @wyli, I have just added more unittests using the data @JHancox shared with me. Could you please help review it again, and let me know if you have any comments? Thanks!

KumoLiu avatar Sep 24 '22 11:09 KumoLiu

Hi @drbeh, do you have any comments on this PR? If not, maybe we can merge this PR first and after you finished #5189 I will create a new PR to update this transform, then it could be easy to go on with the whole post-process pipeline. Thanks in advance!

KumoLiu avatar Sep 28 '22 08:09 KumoLiu

Hi @wyli ,

Should we put the tests/testing_data/hovernet_test_data.npz to somewhere else?

Thanks.

sure I upload it to here https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/hovernet_test_data.npz, it seems it's not used anywhere in the code

wyli avatar Oct 12 '22 07:10 wyli

Hi @wyli , Should we put the tests/testing_data/hovernet_test_data.npz to somewhere else? Thanks.

sure I upload it to here https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/hovernet_test_data.npz, it seems it's not used anywhere in the code

Hi @wyli, I previously used this data for generating content checks, but since Sobel and Gaussian can cause subtle differences in the results, I removed the content checks and currently only have the shape tests. I will remove the test data. Sorry for any misunderstanding I caused, thanks!

KumoLiu avatar Oct 12 '22 07:10 KumoLiu

Hi @drbeh and @wyli, do you have any other comments or advice on this PR?

KumoLiu avatar Oct 13 '22 06:10 KumoLiu

The mean dice on three-fold cross-validation for Lizard dataset is 0.8256.

KumoLiu avatar Oct 31 '22 14:10 KumoLiu

/black

Nic-Ma avatar Oct 31 '22 14:10 Nic-Ma

/build

Nic-Ma avatar Oct 31 '22 14:10 Nic-Ma

/build

Nic-Ma avatar Nov 01 '22 04:11 Nic-Ma

/build

Nic-Ma avatar Nov 01 '22 04:11 Nic-Ma