Downloads · 30 days
510
100% of all-time downloads
desert-ant-labs/moderator
moderator is a image classification model from desert-ant-labs. Use it when you need a label for an image. It is set up for litert. The card lists the license as other.
Downloads · 30 days
510
100% of all-time downloads
All-time downloads
510
Public
Repo size
19.7 MB
Likes
5
Public
Click a slice to open those files.
.bin10 MB · 51%
From the Hugging Face model README
Flag nudity before upload or display.
On-device NSFW image detection, trained only on licensed and synthetic data.
Score an image from 0 to 1 for nudity or sexual activity. Threshold it (default 0.5) and you have your answer. Tuned to pass real swimwear and lingerie photos while flagging real nude and sexual content. The model is small (9.7MB on Apple via Core ML, 9.2MB via LiteRT elsewhere) and runs fully on device, with images never leaving it.
Per-region detail (nipples, genitals, buttocks, nudity, sexual activity) is available for policies that need it, for example allow-topless.
<!-- card-install:start (generated from manifest.json, edit below this block) -->| Platforms | iOS, macOS, tvOS, visionOS, Android, Linux, Windows, Browser, Node |
| Weights | v1.0.0 |
Swift (requirements)
.package(url: "https://github.com/Desert-Ant-Labs/desert-ant-core.git", from: "3.6.0")
Then add the Moderator product to your target.
Kotlin (requirements)
implementation("ai.desertant:moderator:3.6.0")
JavaScript (requirements)
npm i @desert-ant-labs/moderator @litertjs/core # browser
npm i @desert-ant-labs/moderator # Node, prebuilt native core
<!-- card-install:end -->
| File | Format | Size | Contents |
|---|---|---|---|
moderator.mlmodelc | Compiled Core ML (int8) | 9.7MB | Ready to load on Apple platforms (used by the Swift SDK) |
moderator.tflite | LiteRT / TFLite (int8) | 9.2MB | Runs on Android, Linux, Windows, Node, and the web (downloaded on demand by the Kotlin and JavaScript SDKs) |
nipples, genitals, buttocks, nude, and sexAct. The score is the highest region the policy counts; allow-topless leaves out nipples.Trade speed for recall with the SDK's quality setting:
| Quality | Recall | Specificity | Use for |
|---|---|---|---|
fast | 74% | 97% | Video frames; sampling across frames recovers recall |
balanced | 84% | 95% | Higher per-frame recall |
accurate (default) | 88% | 94% | Single images |
This is the rare NSFW model with fully controlled data provenance. Nothing is scraped from the open internet. Every training image is either permissively licensed (public domain or Creative Commons) or generated in-house. Positives are drawn from public-domain fine art and museum open-access collections (classical nudes in painting, sculpture, and photography), historic and documentary photography, and openly-licensed imagery, plus photorealistic images generated with generative image models.
Clean, controlled provenance end to end is unusual for an NSFW classifier, where scraped datasets of unknown origin are the norm. It means no copyright or licensing exposure, and a model you can put in a commercial product with confidence.
Held-out evaluation set (464 images, 75% SFW / 25% NSFW), scored on the single NSFW score at threshold 0.5 with the default accurate quality.
| Metric | Moderator | NudeNet |
|---|---|---|
| Recall (catches NSFW) | 87.8% | 82.6% |
| Specificity (SFW passed) | 93.7% | 87.1% |
| False-block rate (SFW flagged) | 6.3% | 12.9% |
Moderator beats NudeNet on both recall and precision, and flags about half as many SFW images.
Desert Ant Labs Source-Available License. Free for most apps, and a commercial license is required at scale. Full terms are at the link. Licensing: [email protected].
@software{moderator_2026,
title = {Moderator: On-device NSFW image detection, trained only on licensed and synthetic data},
author = {Desert Ant Labs},
year = {2026},
url = {https://huggingface.co/desert-ant-labs/moderator},
}
© 2026 Desert Ant Labs · https://desertant.com
<!-- card-footer:end -->