Gant Laborde
Gant Laborde
I'll try to look at this, this weekend. No promises :D
While the jpeg-js should work, there's a better way to read images in node now. I haven't updated the docs here on NSFWJS but you could use things like https://js.tensorflow.org/api_node/3.7.0/#node.decodeJpeg...
Tagging the issue here: https://github.com/tensorflow/tfjs/issues/2817
@hrichiksite - have you seen this? https://stackoverflow.com/questions/59899650/running-tensorflow-js-tfjs-node-on-aws-lambda-node-js
Interesting. A couple thoughts come to mind. The most likely issue is that there's a security issue where the `src` of the image is cross-origin. By using the `Image` tag,...
This seems to be a bug with TFJS https://github.com/tensorflow/tfjs/issues/322 It's also been identified here: https://stackoverflow.com/questions/57662313/requested-texture-size-0x0-is-invalid-error-when-i-am-loading-image-in-browse This didn't used to be a bug. However, the error you're getting seems to actually...
I haven't run into the need to do this server-side just yet. I'd love to get a pull-request and merge the code so NSFWJS does this, would you be willing...
Try updating your version of Tensorflow maybe?
You should definitely keep track of what CDN packages are available https://cdnjs.com/libraries/tensorflow
Hrmmm. I really don't know. Is your code open source? I can take a look if so.