Michael Robin K
Back

nsfw-onnx

7 ms per image. On CPU.

Yahoo's Open-NSFW classifier, repackaged for ONNX Runtime. No TensorFlow or PyTorch at runtime, no download at first use.

Language
Python
Runtime
ONNX Runtime
License
MIT

Latency, one image

6.98 ms
25.69 ms

Process memory

128 MB
513 MB

Cold start

0.2 s
2 s

nsfw-onnxKeras + TensorFlow

Fig. 01Same model, same Apple M4, batch size 1.

Install

pip install yahoo-open-nsfw-onnx