Open jrsebastian opened 3 months ago
From the error, it is that key does not correspond to the weights of paddle and torch.
This code is two years ago. I think paddledet is updated, but this code is not updated with paddledet.
The solution is: print out paddledets model state_dict key and pytorch
model state_dict key, see what doesn't match, and manually change the convert script to make them match
Hi, i convert the model from
paddle2torch.py
, using the commond below:The
ppyoloe_plus_crn_s_80e_coco.pdparams
is from paddledet.But when i eval the model using COCO dataset, it met an error when loading state_dict for PPYOLOE:
Have any ideas of what wrong with me? Could you give me some help? Thanks in advance.