You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Isensee,
As mentioned in MrGiovanni/ModelsGenesis#31, I would like to pretrain the encoder of Generic_UNet by inheriting the trainer class, and then run the training process. I would like this to be done with the nnUNet_train command.
But when switching from pretraining to training, the trainer class will be changed (from my trainer class to nnUNetTrainerV2) and a new output folder will be created where the training will start from scratch instead of from the pretrained model weights.
How do I implement migrating the pretrained encoder model weights into the training process? Should I replace the Generic_UNet.py with my pre-trained network during the pre-training phase and recover it during the training phase? Looking forward to hearing from you soon.
The text was updated successfully, but these errors were encountered:
Hi,
please have a look at the run_training.py file. This file will instantiate the trainer class. After the trainer class has been instantiated, you can access the network via trainer.network. So you can add some lines here which will replace the parameters of the network with your pretrained ones.
Best,
Fabian
Hi Isensee,
As mentioned in MrGiovanni/ModelsGenesis#31, I would like to pretrain the encoder of
Generic_UNet
by inheriting the trainer class, and then run the training process. I would like this to be done with thennUNet_train
command.But when switching from pretraining to training, the trainer class will be changed (from my trainer class to
nnUNetTrainerV2
) and a new output folder will be created where the training will start from scratch instead of from the pretrained model weights.How do I implement migrating the pretrained encoder model weights into the training process? Should I replace the
Generic_UNet.py
with my pre-trained network during the pre-training phase and recover it during the training phase? Looking forward to hearing from you soon.The text was updated successfully, but these errors were encountered: