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

INFO:keras_compressor.compressor:factorizer not found and failed #9

Open mationai opened 6 years ago

mationai commented 6 years ago

Keep getting

INFO:keras_compressor.compressor:factorizer not found layer:<keras.layers.core.Activation object at 0x11e8bfe80>
INFO:keras_compressor.compressor:factorizer found layer:<keras.layers.convolutional.Conv2D object at 0x11e8bfeb8> factorizer:<class 'keras_compressor.factorizers.tucker.TuckerFactorizer'>
INFO:keras_compressor.compressor:factorization **failed** layer:<keras.layers.convolutional.Conv2D object at 0x11e8bfeb8> factorizer:<class 'keras_compressor.factorizers.tucker.TuckerFactorizer'>
INFO:keras_compressor.compressor:factorizer not found layer:<keras.layers.normalization.BatchNormalization object at 0x11e8b6f60>

A new INFO message happens every 10 minutes or so. Is it ok?

It's been running for over 10 hrs now on a 45MB model on a 2012 macbook pro. Do you have a guess on how much longer it will run? (My TF library wasn't compiled).

thanks.

mationai commented 6 years ago

Found out reading the code that the INFO are just information.

It finally finished after almost 20 hrs, but errored at the end saying AttributeError: 'Model' object has no attribute 'optimizer'. For some reason, my model object don't have that and other attributes. Running a modified version to see if can get it to work.

mationai commented 6 years ago

Got it to work, only got 0.18% savings in params / output model using the default setting. Is this normal?

hammadsaeed commented 6 years ago

@fuzzthink what changes you made , i get no changes in the compressed model