-
Hi, I'm trying to initialize my model with a simple trained autoencoder in order that my model can already be familiar with my type of data. I then want to train it with a MONAI BasicUnet to perform binary segmentation. The segmentation part is working but is there a way to implement the custom initialization keeping a MONAI core structure in my code ? Here is my basic init function in my network class :
Thanks a lot !! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jarod1212, if your autoencoder has the same structure as the BasicUnet, you can simply load the pre-trained weight by adding a
Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
Hi @jarod1212, if your autoencoder has the same structure as the BasicUnet, you can simply load the pre-trained weight by adding a
load_weight
func like:Hope it can help you, thanks!