lobe / web-bootstrap

Bootstrap your Lobe machine learning model with our web starter project.
https://lobe.ai
MIT License
74 stars 31 forks source link

React project doesn't recognize the exported model #28

Open rczalez opened 2 years ago

rczalez commented 2 years ago

Hello, after replacing the template's files in the model folder I got this error. I'm using the latest version of Lobe: 0.11.714.2. I Can't figure out what could be the issue, any idea?

Screen Shot 2022-09-13 at 19 06 53
stone-skipper commented 2 years ago

I'm experiencing the same. Have you found the solution, by any chance?

hksamwan commented 1 year ago

I am encountering a similar problem, I found that it may be due to the type of AI model used being layer models instead of graph models. Therefore, I tried to export the AI file in lobe.ai again with the TensorFlow format, then follow the instruction here: https://github.com/tensorflow/tfjs/tree/master/tfjs-converter to convert the TensorFlow SavedModel to TensorFlow.js graph_model and do the replacing of the template file over again. It works! Hope that might help you.

rataprens commented 1 year ago

Did anyone find another solution?

isaacwritescode commented 1 year ago

Facing the same issue