Skip to content

Commit 1a90a3a

Browse files
committed
bringing pose back in
1 parent 934f944 commit 1a90a3a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

examples/NeuroEvolution-steering/sketch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ let target;
55

66
function setup() {
77
createCanvas(640, 240);
8-
ml5.tf.setBackend("cpu");
98
for (let i = 0; i < 50; i++) {
109
vehicles[i] = new Vehicle(random(width), random(height));
1110
}
11+
ml5.tf.setBackend("cpu");
1212
target = createVector(random(width), random(height));
1313
timeSlider = createSlider(1, 20, 1);
1414
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
},
2828
"dependencies": {
2929
"@mediapipe/hands": "^0.4.1675469240",
30+
"@mediapipe/pose": "^0.5.1675469404",
3031
"@tensorflow-models/hand-pose-detection": "^2.0.0",
32+
"@tensorflow-models/pose-detection": "^2.1.0",
3133
"@tensorflow/tfjs": "^4.2.0",
3234
"@tensorflow/tfjs-vis": "^1.5.1",
3335
"axios": "^1.3.4"

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import neuralNetwork from "./NeuralNetwork";
22
import handpose from "./Handpose";
3-
// import poseDetection from "./PoseDetection";
3+
import poseDetection from "./PoseDetection";
44
import * as tf from "@tensorflow/tfjs";
55
import * as tfvis from "@tensorflow/tfjs-vis";
66
import p5Utils from "./utils/p5Utils";
@@ -12,6 +12,6 @@ export default Object.assign(
1212
tfvis,
1313
neuralNetwork,
1414
handpose,
15-
// poseDetection,
15+
poseDetection,
1616
}
1717
);

0 commit comments

Comments
 (0)