zaidalyafeai / ml-projects

Implementation of web friendly ML models using TensorFlow.js. pix2pix, face segmentation, fast style transfer and many more ...
MIT License
647 stars 254 forks source link

Online model for Sketcher does not load due to TF.js error #17

Closed kmeng01 closed 5 years ago

kmeng01 commented 5 years ago

Upon opening https://zaidalyafeai.github.io/sketcher/, the website freezes, as it is unable to load the model. When I open the dev console, I see the following error message:

Uncaught (in promise) TypeError: tf.loadModel is not a function at start (main.js:225) at (index):92

What is causing this problem, and can you please look into addressing this? Thank you!

kmeng01 commented 5 years ago

By the way, I have found the issue. TF.js 1.0.0 introduces several breaking changes. Here they are in case you are looking to resolve them:

This should fix everything up.