Skip to content

Commit 95725af

Browse files
committed
update model file link
1 parent bce4876 commit 95725af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Handpose/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* Ported and integrated from all the hard work by: https://github.com/tensorflow/tfjs-models/tree/master/handpose
99
*/
1010
import * as tf from "@tensorflow/tfjs";
11-
import model from "@mediapipe/hands";
1211
import * as handPoseDetection from "@tensorflow-models/hand-pose-detection";
1312
import { EventEmitter } from "events";
1413
import callCallback from "../utils/callcallback";
@@ -45,7 +44,7 @@ class Handpose extends EventEmitter {
4544
const modelConfig = {
4645
...this.config,
4746
runtime: "mediapipe",
48-
solutionPath: "../node_modules/@mediapipe/hands",
47+
solutionPath: "https://cdn.jsdelivr.net/npm/@mediapipe/hands",
4948
};
5049

5150
this.model = await handPoseDetection.createDetector(

0 commit comments

Comments
 (0)