1.  [](/)
2.  [Models](/models)
3.  Falconsai NSFW image detection (ViT)

![](/favicon.ico)Served on MixpeekClassificationRecommendedVerified 2026-11-05

# Falconsai NSFW image detection (ViT)

Falconsai/nsfw\_image\_detection

Falconsai NSFW image detection (ViT) is a image and video classification model (Apache-2.0). Served on Mixpeek, scaling to zero when idle.

A Ray Serve app in Mixpeek's inference registry hosts it. It starts at zero replicas and wakes on first use.

[Use in a new namespace](https://studio.mixpeek.com/namespaces/design?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)[Add to an existing namespace](https://studio.mixpeek.com/namespaces?utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp "Open the namespace in Studio, then its Designer tab") [Record as JSON](/models/nsfw-image-detection.json)

New opens the Designer in Studio. For an existing namespace, open it in Studio and use its Designer tab.

No demo for Falconsai NSFW image detection (ViT) yet

A video, image, slideshow or playground goes here once we record one on our own data.

## What it is good and bad at

Best at

Fast binary normal/nsfw screening of images, and of video by the max score over sparse sampled frames.

Worst at

Graded or policy-specific safety (violence, drugs, suggestive but allowed content): it has two labels only; one bad frame between samples can be missed.

Task

Classification

Input

Image, Video

Output

Labels, Scores

Use cases

Moderation, Classification

Why we recommend it

Served CPU-only image safety classifier behind the content classifier app.

## Templates that use it

No template uses this model yet. [Browse templates](/templates).

## Input and output

### Input

Image

Resolution

224x224 (ViTImageProcessor)

Color

RGB

Video

sparse frames sampled by engine.inference.frame\_sampling

### Output

Labels

normal, nsfw

Scores

nsfw\_score in \[0, 1\]; is\_nsfw = nsfw\_score >= threshold (default 0.5)

## How Mixpeek wires it

Extractors

None today

Feature URIs

None today

Vector indexes

None

Retriever stages

classify

Combines with

*   classify task=nsfw calls mixpeek/content-classifier-v1 per document (image or video URL); text documents go to the DistilBERT text classifier in the same app

## How it runs

Status

![](/favicon.ico)Served on Mixpeek Image and video half of the mixpeek\_\_content\_classifier\_v1 Serve app.

Serve apps

`mixpeek__content_classifier_v1`

Runtime

transformers pipeline("image-classification") (ViTForImageClassification)

Weights

safetensors, no remote code

Parameters

85.8 M

Size on disk

343 MB

Preprocessing

Flatten to RGB, pipeline image processor (resize 224, normalize); video sampled to sparse frames.

Postprocessing

Softmax over both labels (top\_k=None); nsfw\_score is the max over labels matching nsfw/unsafe/porn/explicit/questionable, max over frames for video.

Serving

realtime

Hardware

Runs on CPU (slower without a GPU)

### Scale to zero

Minimum replicas

0

Maximum replicas

4

Idle timeout

300 s

Memory

2 GB

CPUs

2

GPUs

0

Cold start, node warm

Not recorded

Cold start, new node

Not recorded

## Measured cost

Unmeasured

No committed throughput or cost measurement for this model.

## Our evaluations

Unmeasured

We have not evaluated this model on our own data yet. Publisher results are in the sources below.

## Questions

What is Falconsai NSFW image detection (ViT) best at?

Fast binary normal/nsfw screening of images, and of video by the max score over sparse sampled frames.

What are the limits of Falconsai NSFW image detection (ViT)?

Graded or policy-specific safety (violence, drugs, suggestive but allowed content): it has two labels only; one bad frame between samples can be missed.

Can Falconsai NSFW image detection (ViT) be used commercially?

Yes. Apache-2.0 on the repo; a community fine-tune of a ViT base, with no published training-data audit.

How does Falconsai NSFW image detection (ViT) run on Mixpeek?

Image and video half of the mixpeek\_\_content\_classifier\_v1 Serve app.

## Identity

Catalog id

`nsfw-image-detection`

Family

vit

Hub id

`Falconsai/nsfw_image_detection`

License

Apache-2.0

Commercial use

AllowedApache-2.0 on the repo; a community fine-tune of a ViT base, with no published training-data audit.

Released

2023-10

Last verified

Verified 2026-11-05

Paper

[arxiv.org/abs/2010.11929](https://arxiv.org/abs/2010.11929)

Code

[huggingface.co/Falconsai/nsfw\_image\_detection](https://huggingface.co/Falconsai/nsfw_image_detection)

## References and formats

*   `hf://Falconsai/nsfw_image_detection@96cb0d0342c7afb80cab76ecc58b265fa44da256`

Format

File

Loads today

safetensors

model.safetensors

Yes

PyTorch .bin

pytorch\_model.bin

No

PyTorch .pt

2 files, e.g. falconsai\_yolov9\_nsfw\_model\_quantized.pt

No

## Related models

*   [TypeSafe Jev](/models/typesafe-jev)Classification
*   [DistilBERT NSFW text classifier](/models/distilbert-nsfw-text-classifier)Classification
*   [Ultralytics YOLO11 classify](/models/yolo11-classify)Classification
*   [Ultralytics YOLO26 classify](/models/yolo26-classify)Classification

## Sources

*   [huggingface.co/Falconsai/nsfw\_image\_detection](https://huggingface.co/Falconsai/nsfw_image_detection)
*   [huggingface.co/api/models/Falconsai/nsfw\_image\_detection](https://huggingface.co/api/models/Falconsai/nsfw_image_detection)
*   [arxiv.org/abs/2010.11929](https://arxiv.org/abs/2010.11929)