Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gaze Tracking, Gesture Recognition
Issue Description
I get an error when doing the first detect and the program is loading the models
09:31:55.482 Human: error loading model: @vladmandic/human-models/models/blazeface.json TypeError: Failed to parse URL from @vladmandic/human-models/models/blazeface.json
at Object.fetch (node:internal/deps/undici/undici:11730:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
[cause]: TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:405:5)
at new URL (node:internal/url:676:13)
at new Request (node:internal/deps/undici/undici:5270:25)
at fetch (node:internal/deps/undici/undici:9508:25)
at Object.fetch (node:internal/deps/undici/undici:11728:18)
at fetch (node:internal/process/pre_execution:281:25)
at xs (/root/workspaces/hobbies/human-face/backend-face-js/node_modules/.pnpm/@vladmandic+human@3.2.2/node_modules/@vladmandic/human/dist/human.node.js:99:25051)
at HTTPRequest.fetchFunc [as fetch] (/root/workspaces/hobbies/human-face/backend-face-js/node_modules/.pnpm/@vladmandic+human@3.2.2/node_modules/@vladmandic/human/dist/human.node.js:99:25777)
at HTTPRequest.<anonymous> (/root/workspaces/hobbies/human-face/backend-face-js/node_modules/.pnpm/@tensorflow+tfjs-core@4.18.0/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:25938:55)
at step (/root/workspaces/hobbies/human-face/backend-face-js/node_modules/.pnpm/@tensorflow+tfjs-core@4.18.0/node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js:138:27) {
input: '@vladmandic/human-models/models/blazeface.json',
code: 'ERR_INVALID_URL'
}
}
Steps to Reproduce
Install Human and Tensorflow
Initialize Human
Issue Description I get an error when doing the first detect and the program is loading the models
Steps to Reproduce Install Human and Tensorflow Initialize Human
Expected Behavior
Environment
js
,esm
,esm-nobundle
)? *Node Import using .mjs/**
export const human = new H.Human(humanConfig);
const file = readFileSync(join(process.cwd(), "src", "assets", "face.jpeg"))
console.log("file: ", file) console.log("human: ", human)
const tensor = human.tf.node.decodeImage(file, 3); const result = await human.detect(tensor, humanConfig);
console.log("result: ", result)
Models exist at path
Debug gives:
Package.json: