keras_to_tensorflow icon indicating copy to clipboard operation
keras_to_tensorflow copied to clipboard

Conversion error

Open ab-bh opened this issue 7 years ago • 2 comments

ValueError: Improper config format: {'l1': 0.0, 'name': 'WeightRegularizer', 'l2': 0.0005000000237487257} How to deal with this error i am using python3.x

ab-bh avatar Apr 16 '18 15:04 ab-bh

@ab-bh The regularization weight can never be zero. If the regularizer has a weight of zero, it is as if there is no regularizer.

I am wondering if the l1:0 value was intentionally set by you in your network design, or keras did that as you had not set any values for l1 regularizer. I assume it is the former; however, in case of the latter please let me know.

amir-abdi avatar Apr 23 '18 00:04 amir-abdi

i was trying to convert model weights which was trained by someone else for my tensorflow model. the link to download the model weights can be found below: wget https://s3.amazonaws.com/stratospark/food-101/model4b.10-0.68.hdf5 I have no idea how the creator of this model weights initialised the weight parameters. You can also have a look by downloading the weights yourself and giving it a try!!! Will be great if you can help!!!

ab-bh avatar Apr 29 '18 10:04 ab-bh