Comments (4)
CDN http://cloudfront.net/ is down : FetchError: request to https://d1zv2aa70wpiur.cloudfront.net/tfjs_quant_nsfw_mobilenet/model.json failed, reason: getaddrinfo ENOTFOUND d1zv2aa70wpiur.cloudfront.net
My logs :
2023-12-22T09:05:19.835173+00:00 app[web.1]: > [email protected] start
2023-12-22T09:05:19.835173+00:00 app[web.1]: > node server.js
2023-12-22T09:05:19.835173+00:00 app[web.1]:
2023-12-22T09:05:20.269873+00:00 app[web.1]: 2023-12-22 09:05:20.269767: I tensorflow/core/util/util.cc:169] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2023-12-22T09:05:20.305057+00:00 app[web.1]: 2023-12-22 09:05:20.304914: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 AVX512F AVX512_VNNI FMA
2023-12-22T09:05:20.305060+00:00 app[web.1]: To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-12-22T09:05:20.503512+00:00 app[web.1]:
2023-12-22T09:05:20.503513+00:00 app[web.1]: /app/node_modules/@tensorflow/tfjs-core/node_modules/node-fetch/lib/index.js:1491
2023-12-22T09:05:20.503515+00:00 app[web.1]: reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err));
2023-12-22T09:05:20.503515+00:00 app[web.1]: ^
2023-12-22T09:05:20.505376+00:00 app[web.1]: FetchError: request to https://d1zv2aa70wpiur.cloudfront.net/tfjs_quant_nsfw_mobilenet/model.json failed, reason: getaddrinfo ENOTFOUND d1zv2aa70wpiur.cloudfront.net
2023-12-22T09:05:20.505378+00:00 app[web.1]: at ClientRequest.<anonymous> (/app/node_modules/@tensorflow/tfjs-core/node_modules/node-fetch/lib/index.js:1491:11)
2023-12-22T09:05:20.505380+00:00 app[web.1]: at ClientRequest.emit (node:events:513:28)
2023-12-22T09:05:20.505381+00:00 app[web.1]: at TLSSocket.socketErrorListener (node:_http_client:494:9)
2023-12-22T09:05:20.505381+00:00 app[web.1]: at TLSSocket.emit (node:events:513:28)
2023-12-22T09:05:20.505381+00:00 app[web.1]: at emitErrorNT (node:internal/streams/destroy:157:8)
2023-12-22T09:05:20.505381+00:00 app[web.1]: at emitErrorCloseNT (node:internal/streams/destroy:122:3)
2023-12-22T09:05:20.505384+00:00 app[web.1]: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
2023-12-22T09:05:20.505386+00:00 app[web.1]: type: 'system',
2023-12-22T09:05:20.505386+00:00 app[web.1]: errno: 'ENOTFOUND',
2023-12-22T09:05:20.505386+00:00 app[web.1]: code: 'ENOTFOUND'
2023-12-22T09:05:20.505386+00:00 app[web.1]: }
2023-12-22T09:05:20.606437+00:00 heroku[web.1]: Process exited with status 1
2023-12-22T09:05:20.628032+00:00 heroku[web.1]: State changed from starting to crashed
from nsfwjs.
I've done the following:
- Download the raw zip https://github.com/GantMan/nsfw_model/releases/tag/1.1.0
- Copy and paste the contents of web_model_quantized in my own s3 directory.
- Try to use that link
Results in the following error:
Error: layer: Improper config format: {"node":[{"name":"input","op":"Placeholder","attr":{"shape":{"shape":{"dim":[{"size":"-1"},{"size":"224"},{"size":"224"},{"size":"3"}]}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/Conv/Conv2D_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"3"},{"size":"3"},{"size":"3"},{"size":"48"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_14/expand/Conv2D_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"1344"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/Conv/Conv2D_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"48"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv/depthwise/depthwise_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"3"},{"size":"3"},{"size":"48"},{"size":"1"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv/depthwise/depthwise_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"48"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv/project/Conv2D_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"1"},{"size":"1"},{"size":"48"},{"size":"24"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv/project/Conv2D_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"24"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_1/expand/Conv2D_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"1"},{"size":"1"},{"size":"24"},{"size":"144"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_14/depthwise/depthwise_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"3"},{"size":"3"},{"size":"1344"},{"size":"1"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_1/expand/Conv2D_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"144"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_1/depthwise/depthwise_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"3"},{"size":"3"},{"size":"144"},{"size":"1"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_1/depthwise/depthwise_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"144"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_1/project/Conv2D_weights","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"1"},{"size":"1"},{"size":"144"},{"size":"32"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCall/StatefulPartitionedCall/predict/MobilenetV2/expanded_conv_14/depthwise/depthwise_bn_offset","op":"Const","attr":{"value":{"tensor":{"dtype":"DTFLOAT","tensorShape":{"dim":[{"size":"1344"}]}}},"dtype":{"type":"DTFLOAT"}}},{"name":"StatefulPartitionedCall/sequential/keras_layer/StatefulPartitionedCall/StatefulPartitionedCa'className' and 'config' must set.
from nsfwjs.
You can download the model here: https://github.com/infinitered/nsfwjs/tree/master/example/nsfw_demo/public/quant_mid
And point it at your own server. I'll see what's up with cloudfront and report back.
from nsfwjs.
Ok, I paid the AWS bill 😄
To stop this in the future host your own copy:
https://github.com/infinitered/nsfwjs?tab=readme-ov-file#host-your-own-model
from nsfwjs.
Related Issues (20)
- [False Positive]: a little bit funny HOT 2
- Which model is the best atm? Resources hardware is not a problem. inception_v4?
- I really need to run this locally for batch processing local images any guides tutorials? HOT 2
- How to use the Inception V3 model in the npm package?
- when adding a frame to an nsfw picture...
- Problem detecting adult content from camera images
- Cant import nsfw in react Project HOT 2
- Logs spammed by tfjs-node launched twice
- Not work local model load HOT 3
- The accuracy is much less than the site HOT 1
- Error connecting to cloudfront.net since this morning HOT 12
- Publish to npm out of sync HOT 3
- `console.warn` when `BASE_PATH` is used on load
- Remove GIF Support HOT 1
- False Positive HOT 1
- type: "graph" vs size: 299 HOT 1
- Mismatch in the published package content. HOT 1
- MobileNetV2Mid doesn't load HOT 3
- NSFW through Docker reports an error - maybe provide Docker support? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nsfwjs.