shaqian / tfjs-yolo

YOLO v3 and Tiny YOLO v1, v2, v3 with Tensorflow.js
https://www.npmjs.com/package/tfjs-yolo
MIT License
111 stars 19 forks source link

l.loadModel is not a function - tfjs 1.1.2 #3

Closed lefnire closed 5 years ago

lefnire commented 5 years ago
"@tensorflow/tfjs": "^1.1.2",
"tfjs-yolo": "^0.0.3",

I get l.loadModel is not a function, same issue as https://github.com/ModelDepot/tfjs-yolo-tiny/pull/22. If I patch per that PR (use loadLayersModel) I get myYolo.predict is not a function. I actually tried pinning tfjs back to ^1.0.0, but I get the same errors (strangely, since this project is pinned at that version..)

shaqian commented 5 years ago

I think it's fixed in https://github.com/shaqian/tfjs-yolo/pull/2. I just published the change in v0.0.4.

lefnire commented 5 years ago

confirmed fixed, thanks!