Closed ml-cv-developer closed 6 months ago
Hi @ml-cv-developer,
Thanks for your interests in our work. The pre-trained weights are for evaluation. If you want to initialize the model, you need to explicitly write something like
weights = torch.load("weight_path.pth")
model.load_state_dict(weights)
instead of turning it into a ckpt.pth
, as this file is used to store the states of model, optimizer, scheduler, etc.
Let me know if this doesn't solve your problem.
Many thanks, Yiming
Hi @ml-cv-developer ,
We haven't heard from you for two weeks, so we guess that this issue has been solved. Please feel free to re-open it if this is not the case.
Many thanks, Yiming
I am trying to use a pretrained model in here as initial weight. https://drive.google.com/drive/folders/1hEHRsyOxvtbnq8UR0iXnQ7kcKO7aaYVM?usp=sharing But got this error.
Can you please give me a guide how I can use pre-trained weights as initial weight of the training? Best regards,