Replies: 4 comments
-
@benmussi @rizkiramadhanx taking a look at this and trying to reproduce. Which of the examples are you referencing? Do you have any other relevant information to provide? |
Beta Was this translation helpful? Give feedback.
0 replies
-
i have the same problem i need to load model locally and classify images locally on my pc to batch process how can i do that? a simple code would be amazing |
Beta Was this translation helpful? Give feedback.
0 replies
-
I managed to make the wasm model work in nodejs. Was a pain.
You have to return something like this
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using NSFW JS on a Node JS application - (https://github.com/infinitered/nsfwjs#node-js-app)
Per the instructions, I can properly load the model using:
const model = await nsfw.load();
However, instead of using the default model on the S3 bucket, I would like to store the model locally and so I have saved the model files locally in a folder with a relative path of ./model/
I tried multiple ways of loading the locally stored model without success and could use help, please. Per the instructions, I tried 3 different ways:
const model = await nsfw.load("file://./model/");
==> This resulted in the error "Only HTTP(S) protocols are supported"
const model = await nsfw.load("file://" + __dirname + "/model/");
==> This resulted in the error "Only absolute URLS are supported"
const model = await nsfw.load("file://c/:\\Users\\User\\NSFWJS\\model");
==> This resulted in the error "Only absolute URLS are supported"
Can anyone provide a suggestion? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions