vladmandic / human

Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gaze Tracking, Gesture Recognition
https://vladmandic.github.io/human/demo/index.html
MIT License
2.16k stars 308 forks source link

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

Closed kdreaming closed 3 months ago

kdreaming commented 3 months ago

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 commented 3 months ago

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

kdreaming commented 3 months ago

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

emmmmm, No difference, still reporting the same error

yanhao98 commented 3 months ago
image

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

Is this what you want?

kdreaming commented 3 months ago
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 commented 3 months ago

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 commented 3 months ago

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