How to store the model.param written in gluon format to .json format?

How to store the model.param written in gluon format to .json format?

I got mobileNet1.0 from gluon in terms of trained *.params files. I would like to save in .json file.

I have used export function using mx.gluon.model_zoo.vision.mobilenet1_0(pretrained=True).export(‘mobilenet1_0’)

but it thrown back with an exception "Please first call block.hybridize() and then run forward with "
“this block at least once before calling export.”

Kindly suggest how to forward with a small snippet of the code. Pls help…

I think this has all the info?

http://gluon.mxnet.io/chapter07_distributed-learning/hybridize.html

1 Like

thank you so much feevos for the help, i was also stuck at the same point.

1 Like