File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
examples/NeuroEvolution-steering Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ let target;
5
5
6
6
function setup ( ) {
7
7
createCanvas ( 640 , 240 ) ;
8
- ml5 . tf . setBackend ( "cpu" ) ;
9
8
for ( let i = 0 ; i < 50 ; i ++ ) {
10
9
vehicles [ i ] = new Vehicle ( random ( width ) , random ( height ) ) ;
11
10
}
11
+ ml5 . tf . setBackend ( "cpu" ) ;
12
12
target = createVector ( random ( width ) , random ( height ) ) ;
13
13
timeSlider = createSlider ( 1 , 20 , 1 ) ;
14
14
}
Original file line number Diff line number Diff line change 27
27
},
28
28
"dependencies" : {
29
29
"@mediapipe/hands" : " ^0.4.1675469240" ,
30
+ "@mediapipe/pose" : " ^0.5.1675469404" ,
30
31
"@tensorflow-models/hand-pose-detection" : " ^2.0.0" ,
32
+ "@tensorflow-models/pose-detection" : " ^2.1.0" ,
31
33
"@tensorflow/tfjs" : " ^4.2.0" ,
32
34
"@tensorflow/tfjs-vis" : " ^1.5.1" ,
33
35
"axios" : " ^1.3.4"
Original file line number Diff line number Diff line change 1
1
import neuralNetwork from "./NeuralNetwork" ;
2
2
import handpose from "./Handpose" ;
3
- // import poseDetection from "./PoseDetection";
3
+ import poseDetection from "./PoseDetection" ;
4
4
import * as tf from "@tensorflow/tfjs" ;
5
5
import * as tfvis from "@tensorflow/tfjs-vis" ;
6
6
import p5Utils from "./utils/p5Utils" ;
@@ -12,6 +12,6 @@ export default Object.assign(
12
12
tfvis,
13
13
neuralNetwork,
14
14
handpose,
15
- // poseDetection,
15
+ poseDetection,
16
16
}
17
17
) ;
You can’t perform that action at this time.
0 commit comments