Giter VIP home page Giter VIP logo

Comments (6)

vladmandic avatar vladmandic commented on May 25, 2024 1

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.

augchan42 avatar augchan42 commented on May 25, 2024

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.

vladmandic avatar vladmandic commented on May 25, 2024

i've merged your pr as-is, but i'd be curious which environment sets navigator object to empty?

from human.

augchan42 avatar augchan42 commented on May 25, 2024

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.

vladmandic avatar vladmandic commented on May 25, 2024

perhaps its new in node v21, i'll check.

from human.

augchan42 avatar augchan42 commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.