Downloads · 30 days
0
d0gr/nsfw-image-detector-onnx
nsfw-image-detector-onnx is a image classification model from d0gr. Use it when you need a label for an image. The card lists the license as apache-2.0.
An unmodified mirror of the int8 ONNX export of AdamCodd/vit-base-nsfw-detector.
Downloads · 30 days
0
Access
Public
Updated Aug 14, 2026
Repo size
88.5 MB
Likes
0
Public
Click a slice to open those files.
.onnx88.5 MB · 100%
From the Hugging Face model README
An unmodified mirror of the int8 ONNX export of AdamCodd/vit-base-nsfw-detector.
This mirror exists so that Offline AI Image Generator (com.offlineai.image) does not
depend on a third-party repository for a file its content-policy compliance rests on. No
weights, architecture or configuration have been changed.
The app downloads onnx/model_int8.onnx once, alongside the first diffusion model, and runs
it entirely on the device to classify every generated image before it is displayed or
stored. Images the classifier scores at or above the app's threshold are discarded. Nothing
is uploaded: no image, prompt or classification result ever leaves the device.
| Input | pixel_values, float32 [1, 3, 384, 384], CHW |
| Preprocessing | resize 384×384 bilinear, /255, then (x - 0.5) / 0.5 |
| Output | logits, float32 [1, 2] |
| Labels | 0 = sfw, 1 = nsfw — take softmax, use index 1 |
Apache License 2.0, inherited from the base model. Original work © AdamCodd. Full text: https://www.apache.org/licenses/LICENSE-2.0. Distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.