Research icon indicating copy to clipboard operation
Research copied to clipboard

convert_binary_model.py Model conversion error

Open 1138886114 opened this issue 4 years ago • 1 comments

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

1138886114 avatar Feb 20 '21 01:02 1138886114

PaddlePaddle is really hard to use, especially if some hyperparameters are modified, it cannot run, and there is no official solution.

aiot-tech avatar May 23 '22 06:05 aiot-tech