ykob / sketch-webcam

Interactive demos with webcam, tensorflow.js models, three.js and Vue-CLI.
https://webcam.tplh.net/
MIT License
17 stars 7 forks source link

Black output #2

Open louiselessel opened 3 years ago

louiselessel commented 3 years ago

Hi! This looks like a super cool project, and I'd like to see if I can get your bodypix example up and running. I'm getting a black output however and this error - it happens in both safari and chrome on a mac:

Everything loads including this: Fetch finished loading: GET "https://storage.googleapis.com/tfjs-models/savedmodel/bodypix/mobilenet/float/050/group1-shard1of1.bin".

Then after that I get: Uncaught (in promise) Error: cropSize must be atleast [1,1], but was 0,0 at R (tf-core.esm.js:17) at cropAndResize_ (tf-core.esm.js:17) at Object.cropAndResize (tf-core.esm.js:17) at body-pix.esm.js:17 at tf-core.esm.js:17 at t.scopedRun (tf-core.esm.js:17) at t.tidy (tf-core.esm.js:17) at an (tf-core.esm.js:17) at Me (body-pix.esm.js:17) at body-pix.esm.js:17

louiselessel commented 3 years ago

It runs on PC windows 10 Chrome though :)

Do you know why that error happens?