DwangoMediaVillage / keras_compressor

Model Compression CLI Tool for Keras.
https://nico-opendata.jp/ja/casestudy/model_compression/index.html
157 stars 39 forks source link

'list' object has no attribute 'trainable_weights' #3

Closed Bisgates closed 7 years ago

Bisgates commented 7 years ago

when I run

keras-compressor.py model.h5 compress.h5

showed this error

numpy.sum([K.count_params(p) for p in set(model.trainable_weights)]))
AttributeError: 'list' object has no attribute 'trainable_weights'