Closed kdreaming closed 8 months ago
import { Human, type DrawOptions, type Result } from "@vladmandic/human";
import { Human, type DrawOptions, type Result } from "@vladmandic/human";
emmmmm, No difference, still reporting the same error
https://stackblitz.com/edit/vitejs-vite-qu9jrg?file=src%2Fmain.ts
Is this what you want?
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....
The console will report a lot of warning messages. Do you have any clues about this? thx again
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.
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
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