Hello~
I try to initialize the parameters of my model with the pre-trained model.
I am not sure how to retrain/fine-tune based on the pre-defined model.
Is the following code correct?
def resnet18b_fq_lq_tern_tex_4(num_classes=1000):
model = ResNet(BasicBlock, [2, 2, 2, 2], fp_fl=False, fp_ll=False)
model.load_state_dict(model_zoo.load_url(model_urls['resnet18']))
return model
Thank you so much.