Comments (6)
it should be undefined and i still don't know why its empty, but additional check you've added doesn't hurt so no issues including it.
from human.
Ok, it turns out the Navigator {} object is merely empty, and not undefined. I'll change the logic in env.ts to account for this.
from human.
i've merged your pr as-is, but i'd be curious which environment sets navigator object to empty?
from human.
Thanks. Here's the beginning portion of a run after my fix (otherwise it doesn't work)
(.env) hosermage@hosermage-x1:~/project-forks/human$ node demo/nodejs/node.js ~/photos/
2023-12-06 18:56:57.450623: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-12-06 18:56:57.468043: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX_VNNI FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-06 18:56:57 INFO: @vladmandic/human version 3.1.2
2023-12-06 18:56:57 INFO: User: hosermage Platform: linux Arch: x64 Node: v21.3.0
2023-12-06 18:56:57 INFO: Current folder: /home/hosermage/project-forks/human
18:56:57.505 Human: version: 3.1.2
18:56:57.505 Human: tfjs version: 4.14.0
18:56:57.505 Human: environment: {
browser: false,
node: true,
platform: '',
agent: '',
backends: [],
tfjs: { version: '4.14.0' },
offscreen: false,
tensorflow: {},
wasm: {},
webgl: {},
webgpu: {},
cpu: { flags: [] }
}
2023-12-06 18:56:57 INFO: human: 3.1.2 tf: 4.14.0
2023-12-06 18:56:57 INFO: Human: 3.1.2
18:56:57.508 Human: available backends: [ 'cpu', 'tensorflow' ]
18:56:57.508 Human: setting backend: [ 'tensorflow' ]
18:56:57.510 Human: registered kernels: [ 'floormod' ]
18:56:57.534 Human: load: {
model: 'blazeface',
url: 'file://models/blazeface.json',
bytes: 538928
}
18:56:57.536 Human: load: { model: 'emotion', url: 'file://models/emotion.json', bytes: 820516 }
18:56:57.545 Human: load: {
model: 'facemesh',
url: 'file://models/facemesh.json',
bytes: 1477958
}
18:56:57.551 Human: load: {
model: 'handlandmark-lite',
url: 'file://models/handlandmark-lite.json',
bytes: 2023432
}
18:56:57.555 Human: load: { model: 'iris', url: 'file://models/iris.json', bytes: 2599092 }
18:56:57.586 Human: load: {
model: 'handtrack',
url: 'file://models/handtrack.json',
bytes: 2964837
}
18:56:57.606 Human: load: {
model: 'centernet',
url: 'file://models/centernet.json',
bytes: 4030290
}
18:56:57.623 Human: load: {
model: 'movenet-lightning',
url: 'file://models/movenet-lightning.json',
bytes: 4650216
}
18:56:57.642 Human: load: { model: 'faceres', url: 'file://models/faceres.json', bytes: 6978814 }
18:56:57.643 Human: tf engine state: 54132296 bytes 1751 tensors
2023-12-06 18:56:57 INFO: Loaded: [ 'blazeface', 'emotion', 'facemesh', 'handskeleton', 'iris', 'handtrack', 'centernet', 'movenet', 'faceres' ]
2023-12-06 18:56:57 DATA: 2.9.1
from human.
perhaps its new in node v21, i'll check.
from human.
yes according to chatgpt4 navigator should be undefined, but I added log statements to show that it was set to an empty Navigator object right from the first reference in env.ts
from human.
Related Issues (20)
- Automatic Page Refresh on Image Detection with Human Library in Worker Environment HOT 5
- Wrong detection issue HOT 5
- Can not import ESM bundle for browser with NextJS 14 HOT 4
- Face IDs shift when a face disappears HOT 1
- About the gaze tracking HOT 1
- Webpack unable to handle @mapbox/node-pre-gyp/lib/util/nw-pre-gyp/index.html HOT 3
- Human inferencing stops after ~5 mins on Chrome on Windows HOT 2
- Face recognition is not working HOT 8
- Questions on using the face meshes to make masks HOT 1
- The highest priority backend 'webgpu' has not yet been initialized. HOT 6
- camera images sometimes out of focus - adding focusMode? HOT 3
- Facing “Reference Error: tJ is not defined” error when trying to precompile using "npm run build" command. HOT 2
- Is it possible to detect pinch gesture with one hand 2 fingers or two hands each with 2 fingers HOT 2
- Blaze resized image normalization HOT 1
- Identification Failures near Glass Windows and Glasses HOT 2
- Is there any way to tell whether to wear a mask? HOT 3
- Recognizing the wrong person HOT 1
- TypeError: Human is not a constructor HOT 3
- error loading model: @vladmandic/human-models/models/blazeface.json TypeError: Failed to parse URL from @vladmandic/human-models/models/blazeface.json HOT 1
- Head Pose Estimation HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from human.