patlevin / tfjs-to-tf

A TensorFlow.js Graph Model Converter
MIT License
139 stars 18 forks source link

Conversion of old type of TFJS Graph model to frozen model #41

Closed dasmehdix closed 2 years ago

dasmehdix commented 2 years ago

Hi all. I have tfjs graph model but old type which includes model.json and weights.json. So, when I tried to convert old type tfjs graph model into tf frozen model, I get FileNotFoundError: [Errno 2] No such file or directory: 'group1-shard1of1.bin' which is normal because there is no .bin files in the old type tfjs graph model. There is just a weights.json file. How can I convert this model(model.json, weights.json) into tf frozen model(or keras saved model)?