-
Notifications
You must be signed in to change notification settings - Fork 554
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with model.classifyGif() #436
Comments
Pinging @YegorZaremba - But I'll see about taking a look next week if he doesn't get a chance to look at this. I should def include a node sample for gifs in the examples folder. |
That sounds great. Thank you for your quick response! |
Hi @edsumpena Here is test for According to error /~https://github.com/nsfw-filter/gif-frames/blob/master/gif-frames.js#L45, It looks like your could you pls write result of this for me
Related: #431 |
Hi @YegorZaremba, I have run the log command. It returns "false". I'm assuming that it should return "true"? |
@edsumpena I think you should skip decoding gif by tenserflow and pass buffer as is. We will improve this step for Node.js #431 (comment) This code also runs in browsers. Browsers don't have some Node.js stuff. I plan to do separate logic in this lib for browsers and Node.js in the future |
I have run the code without tf.node.decodeGif(pic.data) and it works. Thank you for your help! |
Hi, I'm building a server on node.js to handle NSFW gifs. However, I've run into some error messages and I'm not sure how to resolve them.
(node:4365) UnhandledPromiseRejectionWarning: Error: "url" option is required.
at Object.gifFrames [as default] (/home/runner/HandmadeSeparateProjections/node_modules/@nsfw-filter/gif-frames/gif-frames.js:45:12)
at NSFWJS. (/home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:204:60)
at step (/home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:52:23)
at Object.next (/home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:33:53)
at /home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:27:71
at new Promise ()
at __awaiter (/home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:23:12)
at NSFWJS.classifyGif (/home/runner/HandmadeSeparateProjections/node_modules/nsfwjs/dist/index.js:193:16)
at Client. (/home/runner/HandmadeSeparateProjections/index.js:1800:38)
So here's what I have done:
Can anyone please help me out? Is there anywhere I can find sample code to GIF classification? Thank you in advance.
The text was updated successfully, but these errors were encountered: