Replies: 2 comments
-
@alicera it will not use pretrained weights if you do not use the --pretrained flag for the train script (or pass pretrained=True to the create_model funtion) ... if you want any weights, you can use --initial-checkpoint, BUT, the weights have to match the target model (classifier size) as it loads after creation... if they don't match you need disable strict checkpoint loading, and remove the head from the state_dict in the checkpoint, but that requies a bit of code hacking... Another hack if you want to to behave like a pretrained weight, you can locally modify the pretrained cfg for the model and add a ie for example in efficientnet.py if you had weights for b5, change
to
|
Beta Was this translation helpful? Give feedback.
-
OK, THANKS --pretrained will use the imageNet pretrain weight to training |
Beta Was this translation helpful? Give feedback.
-
how to train the network with pretrain imagenet
how to train the network with any init weight
using --pretrained to archive the target that pretrain from imagenet ?
it will train with initial weights without --pretrained?
Beta Was this translation helpful? Give feedback.
All reactions