Skip to main content

How X02 Scans Uploads for NSFW Content

How X02-Vision, our EfficientNet-based classifier, checks uploaded images after they are stored, what it flags, and how flagged files reach a human for review.

By X02 Team · · AI, Security, Machine Learning, Content Moderation, Architecture

Any service that hosts files for the public has to deal with content that should not be there. Reviewing every upload by hand does not work, so X02 runs uploaded images through an automated classifier, X02-Vision, and sends the suspicious ones to a person.

This post describes what that actually does, and what it does not.


1. When the Scan Happens

The scan runs after the upload, not during it. The file is streamed to storage, the upload response goes back to you, and the image is checked in the background. That keeps uploads fast, and it means a file is reachable for a short time before its scan result exists.

Two practical consequences:

Scans currently cover images uploaded to X02. Other file types are not scanned on upload.


2. What the Classifier Does

X02-Vision is a service we run ourselves. It uses an EfficientNet-B4 image model (PyTorch, on a GPU when one is available) and sorts an image into four classes: realistic NSFW, anime/hentai NSFW, safe anime, and safe realistic. It returns a 0–100 score.

Score Result
Below 40 Allowed
40 to 80 Flagged for review
Above 80 Flagged as high confidence

It detects sexual content. It is not a violence or gore detector, it does not identify people, and it is not a substitute for a legal-compliance system. Like any classifier, it makes mistakes in both directions, which is why a human makes the final call.


3. What Happens to a Flagged File

  1. The score and file details are recorded and posted to our private admin channel for review.
  2. A moderator looks at the file and decides: approve it, or quarantine it.
  3. When a file is quarantined, it is removed from public access and its cached copies are purged from the CDN.

Automatic quarantine on score alone is turned off. A flagged file stays reachable until a moderator acts on it, so response time depends on how quickly someone sees the alert.

Account holders can appeal a quarantine decision.


Summary

X02-Vision is a first-pass filter that runs in the background and routes suspicious images to a human reviewer. It does not delay uploads and it does not make removal decisions by itself.

Read this article on X02