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

Cannot fing the medical_resnet50 model when using perceptual loss #7645

Closed
vasl12 opened this issue Apr 15, 2024 · 1 comment
Closed

Cannot fing the medical_resnet50 model when using perceptual loss #7645

vasl12 opened this issue Apr 15, 2024 · 1 comment

Comments

@vasl12
Copy link

vasl12 commented Apr 15, 2024

In monai/losses/perceptual.py

I would like to report that the model names do not correspond to the models in torch hub for the medical datasets and as a result the perceptual loss class is cumbersome to deal with.

E.g. medical_resnet50_23datasets should become medicalnet_resnet50_23datasets in order to find the model in torch hub.

class PercetualNetworkType(StrEnum): alex = "alex" vgg = "vgg" squeeze = "squeeze" radimagenet_resnet50 = "radimagenet_resnet50" medicalnet_resnet10_23datasets = "medicalnet_resnet10_23datasets" medical_resnet50_23datasets = "medical_resnet50_23datasets" resnet50 = "resnet50"

@Lucas-rbnt
Copy link
Contributor

Hi, it seems that this problem has already been solved in this recent PR #7548

@KumoLiu KumoLiu closed this as completed Apr 17, 2024
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

No branches or pull requests

3 participants