Research
Research copied to clipboard
convert_binary_model.py Model conversion error
After downloading the model, run the model transformation and report an error:
python convert_binary_model.py --model='ResNet152_vd' --pretrained_model=pretrained_models/res152_softmax_v2/ --binary_model=./binary_models/res152_softmax_v2 --image_shape=3,224,224 --task_mode='classification'
RuntimeError: Variable's shape does not match, the Program requires a parameter with the shape of ((2048, 1000)), while the loaded parameter (namely [ fc_0.w_0 ]) has a shape of ((2048, 203094))
How to solve this problem? Thank you very much
PaddlePaddle is really hard to use, especially if some hyperparameters are modified, it cannot run, and there is no official solution.