Is it possible to loadModels in NodeJS Environment from a URL ? #126
-
Hello, I am trying to loadmodels from the following url : https://github.com/vladmandic/face-api/tree/master/model. Here is my code for the same : const faceapi = require("@vladmandic/face-api/dist/face-api.node.js");
But I am getting the following error :
Is it possible to loadModels in NodeJS Environment from a URL ? |
Beta Was this translation helpful? Give feedback.
Answered by
vladmandic
Sep 29, 2022
Replies: 1 comment
-
sure you can, but...
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vladmandic
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sure you can, but...
(if you try to download that model yourself using browser, you'll see you don't get binaries, you get a web page result)
try loading from a CDN using URL
https://cdn.jsdelivr.net/npm/@vladmandic/[email protected]/model/
nodejs
, it may or may not have a built-in http fetch functionfetch
function - see section on monkey-patch how to do that