-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error message in console: Initialization of backend webgpu failed #231
Comments
Today the error is no longer been displayed, but this may be indicative of a bigger issue where sub components of ml5 library are changing that are not part of the npm library delivery |
I am running into the same issue: Here is the error I got in console: Initialization of backend webgpu failed I am running in Google Chrome Version 131.0.6778.86 (Official Build) (64-bit) Processor: AMD Ryzen 9 7845HX with Radeon Graphics 3.00 GHz |
I've been noticing this issue recently as well, it seems to come and go, it's very strange! I wonder if it's something related to chrome/webgpu update? It resolves if you force a non-webgpu backend, for example: ml5.setBackend('webgl'); |
It works! Thanks! |
Error "Initialization of backend webgpu failed" |
Strange! For me, I get the "error" but the sketch still runs. @jht9629-nyu if you add function preload() {
// Load the bodyPose model
ml5.setBackend("webgl");
bodyPose = ml5.bodyPose();
} @ziyuan-linn do you have any ideas about this? It seems something has changed with |
Error message does not appear to affect behavior, |
@shiffman When The tfjs It looks like this issue has already been addressed by tfjs in tensorflow/tfjs#8392, which is released in tfjs-v4.22.0. I think bumping our dependency versions should fix the issue. This might also be a good opportunity to look into bringing back Dependabot, which automatically checks for dependency updates. |
Thank you @ziyuan-linn! I re-enabled dependabot in the repo as well as updated tensorflow.js version in #232. I haven't had a chance to test it yet though. Take a look and we can do a quick release for just this update if need be! |
Issue Type
Runtime Error, Unexpected Behavior
ml5.js Version
v.1.2.0 Latest
Development Environment
p5js editror
Browser & Operating System
Chrome Macos Version 131.0.6778.69 (Official Build) (arm64)
Issue Description
From documentation:
https://docs.ml5js.org/#/reference/bodypose
run the example sketch:
https://editor.p5js.org/ml5/sketches/hMN9GdrO3
Following error is displayed in console:
Initialization of backend webgpu failed
index.js:259 TypeError: t.requestAdapterInfo is not a function
at Object.factory (pose-detection.esm.js:17:97544)
at async b.ready (engine.js:93:13)
at async fG.loadModel (index.js:256:7)
Minimal Reproducible Example
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: