Skip to content
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

Fix load pretrain weight issue in ResNet #7924

Merged
merged 7 commits into from
Jul 18, 2024
Merged

Conversation

KumoLiu
Copy link
Contributor

@KumoLiu KumoLiu commented Jul 17, 2024

Fixes #7923

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 -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu KumoLiu requested review from ericspod and Nic-Ma July 17, 2024 11:13
@ericspod
Copy link
Member

The bias_downsample value should be bool everywhere from what I gather, however in get_medicalnet_pretrained_resnet_args there's still code treating it like an int, should this be revised as well?

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 17, 2024

The bias_downsample value should be bool everywhere from what I gather, however in get_medicalnet_pretrained_resnet_args there's still code treating it like an int, should this be revised as well?

Yes, I revised all of them in the latest commit. Could you please help review it again? Thanks!

KumoLiu and others added 2 commits July 17, 2024 23:37
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
@KumoLiu KumoLiu requested a review from ericspod July 18, 2024 07:03
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jul 18, 2024

/build

@ericspod ericspod merged commit 46e2b0e into Project-MONAI:dev Jul 18, 2024
28 checks passed
@KumoLiu KumoLiu deleted the resnet branch July 19, 2024 05:42
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.

Pretrained weights incompatibility for resnet10
2 participants