Skip to content

Commit 8c07aa7

Browse files
Fix ESLint
Signed-off-by: QuentinLemCode <[email protected]>
1 parent 370c13a commit 8c07aa7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/classifier_faces.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
const path = require('path')
21
const fs = require('fs/promises')
32

43
let tf, Human, Jimp, wasm
@@ -32,10 +31,10 @@ if (process.argv.length < 3) throw new Error('Incorrect arguments: node classifi
3231

3332
const config = {
3433
cacheSensitivity: 0.01,
35-
//modelBasePath: 'file://node_modules/@vladmandic/human/models/',
34+
// modelBasePath: 'file://node_modules/@vladmandic/human/models/',
3635
modelBasePath: 'https://vladmandic.github.io/human-models/models/',
3736
backend: PUREJS ? 'wasm' : 'tensorflow',
38-
//wasmPath: 'file://node_modules/@tensorflow/tfjs-backend-wasm/dist/',
37+
// wasmPath: 'file://node_modules/@tensorflow/tfjs-backend-wasm/dist/',
3938
wasmPath: `https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@${tf.version_core}/dist/`,
4039
debug: false,
4140
async: false,
@@ -67,7 +66,7 @@ async function main() {
6766
paths = process.argv.slice(2)
6867
}
6968

70-
Human.env.updateBackend();
69+
Human.env.updateBackend()
7170
const human = new Human.Human(config)
7271

7372
for (const path of paths) {
@@ -99,7 +98,7 @@ async function main() {
9998
}
10099

101100
if (PUREJS) {
102-
wasm.setWasmPaths(config.wasmPath, true);
101+
wasm.setWasmPaths(config.wasmPath, true)
103102
}
104103
tf.setBackend(PUREJS ? 'wasm' : 'tensorflow')
105104
.then(() => main())

0 commit comments

Comments
 (0)