-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pretrained 3d resnet #2836
Comments
Hi @JianJuly , Thanks for your interest and experiments here. resnet50(..., n_input_channels=1) Add @yiheng-wang-nv for further discussion. Thanks. |
@Nic-Ma Thank you for your quick reply. Another question is when will |
Hi @JianJuly , I think it's still under discussion, we plan to provide some model zoo features in the short future. Thanks. |
this becomes a duplicate of Project-MONAI/model-zoo#48, I'm closing this for now. |
I have tried to work with the referred weights but getting a compatibility issue: Project-MONAI/model-zoo#48 |
Describe the bug
i intend to use pretrained resnet50 for feature extraction.
so first i tried the following codes
It raises
NotImplementedError: Currently not implemented, see comments in source code
then i manually download the pretrained weights from https://github.com/Tencent/MedicalNet, and load it.
Yet it raises
size mismatch for conv1.weight: copying a param with shape torch.Size([64, 1, 7, 7, 7]) from checkpoint, the shape in current model is torch.Size([64, 3, 7, 7, 7]).
I found that the first conv of resnet50 we import here is of shape 3×7×7×7, while it of pretrained weights if 1×7×7×7.
How can i address it?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Ensuring you use the relevant python executable, please paste the output of:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: