We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce4876 commit 95725afCopy full SHA for 95725af
src/Handpose/index.js
@@ -8,7 +8,6 @@
8
* Ported and integrated from all the hard work by: https://github.com/tensorflow/tfjs-models/tree/master/handpose
9
*/
10
import * as tf from "@tensorflow/tfjs";
11
-import model from "@mediapipe/hands";
12
import * as handPoseDetection from "@tensorflow-models/hand-pose-detection";
13
import { EventEmitter } from "events";
14
import callCallback from "../utils/callcallback";
@@ -45,7 +44,7 @@ class Handpose extends EventEmitter {
45
44
const modelConfig = {
46
...this.config,
47
runtime: "mediapipe",
48
- solutionPath: "../node_modules/@mediapipe/hands",
+ solutionPath: "https://cdn.jsdelivr.net/npm/@mediapipe/hands",
49
};
50
51
this.model = await handPoseDetection.createDetector(
0 commit comments