xiaochus/MobileNetV3

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

JACKYLUO1991 opened this issue · 7 comments

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

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

I may make a PR tomorrow😂

@fzyzcjy thanks, i have solved it...

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

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

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

@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?