Skip to content

Using pretrained ResNet with MedicalNET weights #516

Discussion options

You must be logged in to vote

HI @Meddebma , the default number of input channels of monai's resnet is 3 (https://github.com/Project-MONAI/MONAI/blob/dev/monai/networks/nets/resnet.py#L163), but in the pretrained weights it was 1. If you need to use that pretrained weights, you may need to load the weights except the conv1 layer.
You can check here for reference

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wyli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants