xiaochus / MobileNetV3

A Keras implementation of MobileNetV3.
MIT License
236 stars 83 forks source link

TypeError: Not JSON Serializable what's wrong? please help me! #5

Closed JACKYLUO1991 closed 5 years ago

fzyzcjy commented 5 years ago

The Lambda layer should be pulled out from the object, I also had that problem

fzyzcjy commented 5 years ago

I may make a PR tomorrow😂

JACKYLUO1991 commented 5 years ago

@fzyzcjy thanks, i have solved it...

xiaochus commented 5 years ago

@actionLUO @fzyzcjy Could you provide detail of this error?I didn't see it in my local test.

fzyzcjy commented 5 years ago

@xiaochus on my mobile phone now so cannot give code. main idea: when saving model chkpt to disk, lambda layer have error

JACKYLUO1991 commented 5 years ago

Lambda has error. u can simply convert it to other coding format...

xiaochus commented 5 years ago

@actionLUO @actionLUO For custom layers you should save_weights(), not save(), this what i did in the model. I can save weights file and load weights file without any error, did you modify the save part?