Skip to content

1390 Enhance DynUNet with get_feature_maps API #1393

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 30, 2020

Conversation

Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Dec 23, 2020

Fixes #1390 .

Description

As more than 3 users reported the problem with DynUNet, we need to change the return data of forward function.
This PR added get_feature_maps API according to @rijobro 's suggestion in #1263 (comment).

Status

Ready

Types of changes

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

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Dec 23, 2020

/black

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Dec 30, 2020

/black

Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, this is a breaking change, may need to update the tutorial as well

@DrAlaafeef
Copy link

I got an error when trying to run the DynUNet tutorial using the docker image "projectmonai/monai:latest" on 21/2/2021.

"torch.nn.modules.module.ModuleAttributeError: 'DynUNet' object has no attribute 'get_feature_maps'"

@rijobro
Copy link
Contributor

rijobro commented Feb 21, 2021

Thanks @DrAlaafeef, you're seeing this because we modified the DynUNet public interface again, see #1596. We deleted the get_feature_maps method and returned a concatenated tensor containing both the output of the forward pass and the feature maps (if deep_supervision==True).

Would you be able to create an issue on the Tutorials repository? We're currently in the process of setting up our CI/CD to automatically run all of our tutorials, so we should avoid this sort of problem in the future.

@yiheng-wang-nv do you think you could take care of the Tutorials PR?

@rijobro
Copy link
Contributor

rijobro commented Feb 21, 2021

@DrAlaafeef Alternatively, you can checkout the 0.4.0 tag for both MONAI and the tutorials to ensure they are in sync with each other.

@Nic-Ma Nic-Ma deleted the 1390-enhance-dyunet-feature-map branch July 2, 2021 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sliding Window Inference giving error on 0.4.0
5 participants