Skip to content
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

The highest priority backend 'webgpu' has not yet been initialized. #431

Closed
kdreaming opened this issue Mar 20, 2024 · 6 comments
Closed
Assignees

Comments

@kdreaming
Copy link

Issue Description
The highest priority backend 'webgpu' has not yet been initialized.
Steps to Reproduce
only one step
import * as H from '@vladmandic/human'
Environment
vite@4.5.0

@yanhao98
Copy link

import { Human, type DrawOptions, type Result } from "@vladmandic/human";

@kdreaming
Copy link
Author

import { Human, type DrawOptions, type Result } from "@vladmandic/human";

emmmmm, No difference, still reporting the same error

@yanhao98
Copy link

@kdreaming
Copy link
Author

image https://stackblitz.com/edit/vitejs-vite-qu9jrg?file=src%2Fmain.ts

Is this what you want?

Yes, thank you for your reply, through your code I figured out the reason why I encountered the problem:
Another dependency was introduced in my project
import * as FACE_API from '@vladmandic/face-api'
When I removed it, it seemed to run normally,BUT....
image
The console will report a lot of warning messages. Do you have any clues about this?
thx again

@vladmandic
Copy link
Owner

you cannot mix multiple libs that use tfjs such as human and face-api at the same time - that is the cause of the first error
and if you're using a lib that includes tfjs such as human default version, then you cannot import tfjs once again - that is the cause of your last error.

@kdreaming
Copy link
Author

you cannot mix multiple libs that use tfjs such as human and face-api at the same time - that is the cause of the first error and if you're using a lib that includes tfjs such as human default version, then you cannot import tfjs once again - that is the cause of your last error.

totally,you are right

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants