zaidalyafeai / ml-projects

Implementation of web friendly ML models using TensorFlow.js. pix2pix, face segmentation, fast style transfer and many more ...
MIT License
648 stars 254 forks source link

ValueError: Layer weight shape (4, 4, 3, 32) not compatible with provided weight shape (4, 4, 3, 64) #20

Open OhRly-net opened 5 years ago

OhRly-net commented 5 years ago

When trying to convert my model, i get the following error:

 File "convert_keras.py", line 133, in <module>
    layer.set_weights([W, b])
  File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\keras\engine\base_layer.py", line 1057, in set_weights
    'provided weight shape ' + str(w.shape))
ValueError: Layer weight shape (4, 4, 3, 32) not compatible with provided weight shape (4, 4, 3, 64)

Any tips on what might be going wrong here?