shaqian / tfjs-yolo-demo

Demo for tfjs-yolo
https://shaqian.github.io/tfjs-yolo-demo/
MIT License
37 stars 9 forks source link

about different models on your demo #2

Open FahriBilici opened 3 years ago

FahriBilici commented 3 years ago

Hello i trained yolov3 model in keras and converted into tfjs format like your models. But when I replaced your v3 model files with mine demo is not opening. what should I do? It throw the error in below. Error: Unknown layer: Lambda. This may be due to one of the following reasons:

  1. The layer is defined in Python, in which case it needs to be ported to TensorFlow.js or your JavaScript code.
  2. The custom layer is defined in JavaScript, but is not registered properly with tf.serialization.registerClass(). at new t (tf-layers.esm.js:41) at deserializeKerasObject (tf-layers.esm.js:41) at deserialize (tf-layers.esm.js:41) at o (tf-layers.esm.js:41) at t.fromConfig (tf-layers.esm.js:41) at deserializeKerasObject (tf-layers.esm.js:41) at deserialize (tf-layers.esm.js:41) at eval (tf-layers.esm.js:41) at eval (tf-layers.esm.js:41) at Object.eval [as next] (tf-layers.esm.js:41)
Shoray2002 commented 2 years ago

How did you convert your model from yolo3 to tfjs?