Replies: 1 comment 2 replies
-
Hi @vikashg , sorry for the late reply. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have been thinking about a use case. I will explain everything with regards to Inception V3 but this might apply to other models as well.
As we know that many such models use transfer learning and we need to use pre-trained weights. Now specifically in case of Inception-V3 if we load the architecture without the
aux_logits
, it is not possible to load the pretrained weights. But if we use the aux_logits we run into errors from the previous discussion.The other option is to use the full model and load the pre-trained weights into it and then turn off the branch of the network that we dont need as we do here. An example code snippet is here
However the torchvisionFC in monai does not allow me to do that once we load the pretrained weights. We cannot do something like
model.aux_logits=False
. Even if I were able to do it, I will need to create a custom function where the loaded model needs to be further processed before actually starting training.So, do you think that it is wise to try to do all these things in a monai bundle or we can just train as we normally do and use monai bundle for inference. In other words, would you say if there is a "complicated" model train it using the regular pipeline and use monai bundle just for inference.
I would like to know your thoughts
Thanks so much for all the help in the last few days.
Vikash
Beta Was this translation helpful? Give feedback.
All reactions