ViT-base NSFW image detector (sfw / nsfw)

models.skillsafe.ai/vit-base-nsfw-detector-fp32@8587de99/

Vetted New WebGPU

Image classification model for transformers.js (fp32). Runs on WebGPU or WASM — 329 MB downloaded once from models.skillsafe.ai, then cached for every SkillSafe app that uses it. Inference happens on your device; nothing you enter is uploaded to load it, and it never costs a credit. Weights from Hugging Face · skillsafe-ai/vit-base-nsfw-detector, pinned at b80e4dccf233 — also loadable straight from Hugging Face outside SkillSafe (how).

Share

Details

Catalogue idvit-base-nsfw-detector-fp32@8587de99
Runtimetransformers.js ≥ 3.0.0
DeviceWebGPU, WASM
Variantfp32
Download329 MB · 1 file
LicenceApache-2.0 · notice
Pinned atb80e4dccf2331f5ceac56526a7885a1289623769
ApprovedSep 22, 2026
Statusactive — every file is a live vetted hash

Files

Each file is served at an immutable URL; the canonical form is the SHA-256 itself. Tokenizer and config JSON are not here by design — they ship in your app bundle.

PathFormatSizeSHA-256
onnx/model.onnx onnx 329 MB dce8f5af8509…286384

Signature

Graph inputs and outputs read from the ONNX bytes at vetting — the tensor names your session.run() call feeds and reads. Symbolic dimensions are shown by name.

Inputs

  • pixel_values float32 [batch_size, num_channels, height, width]

Outputs

  • logits float32 [batch_size, 2]
Use it in an app declaration · SDK loader · transformers.js · URLs · Hugging Face — generated from this entry

Add to the body of POST /v1/apps/{slug}/releases (or a release session). An unknown or withdrawn model is refused with a 400 naming it; the app page then shows "downloads 329 MB · runs on your device" and /models.txt carries the attribution.

{
  "models": [
    {
      "id": "vit-base-nsfw-detector-fp32",
      "revision": "8587de99"
    }
  ]
}

Evaluation

onnx.checker + onnxruntime CPU smoke run with zero-filled inputs at the declared shapes; per-file SHA-256 pinned to the source; ONNX output vs the PyTorch model from the same commit on real text (import.parity) — imported as published upstream, then checked. Evaluated Sep 22, 2026.

Parity against transformers ViTForImageClassification from same snapshot, fp32 · logits

fileprecisionmax absmean abscosine / PSNR
onnx/model.onnxfp321.5e-68.9e-71.000000
onnx/model_quantized.onnxquantised0.1210.0830.998914

Runs under onnxruntime

Zero-filled inputs at the declared shapes, CPU execution provider on the converter host; the check is that the graph loads, runs, and emits the declared output shapes.

  • onnx/model.onnx: pixel_values[1,3,384,384] → logits[1,2] 80.5 ms
  • onnx/model_quantized.onnx: pixel_values[1,3,384,384] → logits[1,2] 64.2 ms

Toolchain: python 3.12.13 · platform Darwin 25.6.0 arm64 · torch 2.10.0 · onnx 1.23.0 · onnxruntime 1.30.0. Recipe models/recipes/vit-base-nsfw-detector.yaml (b1ea4628ea34). Full manifest.json

Licence & attribution

Apache-2.0 · licence text · notice

vit-base-nsfw-detector: AdamCodd, Apache License 2.0 (fine-tuned from google/vit-base-patch16-384, Apache License 2.0). https://huggingface.co/AdamCodd/vit-base-nsfw-detector

Apps that declare this model get this text in their generated /models.txt, so a licence that requires a notice always carries one.

Every file here was approved by exact SHA-256 after a structural audit of the graph, fetched from a content-pinned source, and is served credential-free at an immutable URL. The SDK re-verifies the hash on your device before it caches or returns anything. Missing a variant? Request it — or read how the registry works.