patlevin / tfjs-to-tf

A TensorFlow.js Graph Model Converter
MIT License
136 stars 19 forks source link

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

Closed dasmehdix closed 1 year ago

dasmehdix commented 1 year 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)?