alt.freeweights.vision / AI-Anime-Image-Detector-ViT
From: legekka <huggingface.co/legekka>Newsgroups: alt.freeweights.visionSubject:

AI-Anime-Image-Detector-ViT

Date: 2026-11-15Commit: f78293fSigned: 2DC28CC7B26A283B ✓

Image classification model with 88M parameters. Safetensors weights, 350 MB in all. Published by legekka under Apache-2.0.

88M params350MBAI-Anime-Image-Detector-ViTsafetensorspermissive
FactsParams88MSize350 MBFormatssafetensorsTaskimage classificationLicenseApache-2.0From sourcepermissive
$ fw get legekka/AI-Anime-Image-Detector-ViT
# manifest sha256 61b205ecf8d0… · 350 MB · 5 files
$ fw verify ./AI-Anime-Image-Detector-ViT legekka/AI-Anime-Image-Detector-ViT
From sourceHosted (signed)legekka/AI-Anime-Image-Detector-ViTLast check: 2026-11-15 02:50 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
350 MB
Weights
350 MB (safetensors)
Parameters
88M
Formats
safetensors
Task
image classification
License
Apache-2.0 (permissive)
Files
5, each with a sha256
Publisher
legekka
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:50 UTCpassed

Model card

From the publisher at commit f78293f. Shown as plain text with links; images open at the publisher.

AI Anime Image Detector ViT#

This is a proof of concept model for detecting anime style AI images. Using Vision Transformer, it was trained on 1M human-made real and 217K AI generated anime images. During training either type appeared in equal amount to avoid biases. The model was trained on a single RTX 3090 GPU for about 40 hours, ~35 epochs.

The training logs are available on my wandb.

Evaluation#

Each checkpoint was evaluated on 500-500 real and AI images.

Final result:

  • Training Loss: 0.1009
  • Eval Loss: 0.1386

It seems like using random crops helped the model to generalize better, however, the training dataset only contained 512x512 images, which meant that every cropped image had bilinear interpolation. Training the model on 1024x1024 images could probably further improve its performance. (Maybe I'll do it later)

Performance comparison#

We did a small eval test with ~5000 images on the current available AI image detectors. Note that these models were not specificly trained on anime images.

ModelAccuracy
dima806/ai_vs_real_image_detection35,97%
Organika/sdxl-detector43,29%
Nahrawy/AIorNot64,74%
jacoballessio/ai-image-detect-distilled68,94%
umm-maybe/AI-image-detector75,45%
mmanikanta/VIT_AI_image_detector79,65%
legekka/AI-Anime-Image-Detector-HD-ViT WIP94,26%
legekka/AI-Anime-Image-Detector-ViT (Ours)94,68%

Usage#

Example inference code:

from transformers import AutoModelForImageClassification, AutoFeatureExtractor
import torch
from PIL import Image

model = AutoModelForImageClassification.from_pretrained("legekka/AI-Anime-Image-Detector-ViT")
feature_extractor = AutoFeatureExtractor.from_pretrained("legekka/AI-Anime-Image-Detector-ViT")

model.eval()

image = Image.open("example.jpg")
inputs = feature_extractor(images=image, return_tensors="pt")

outputs = model(**inputs)
logits = outputs.logits

label = model.config.id2label[torch.argmax(logits).item()]
confidence = torch.nn.functional.softmax(logits, dim=1)[0][torch.argmax(logits)].item()

print(f"Prediction: {label} ({round(confidence * 100)}%)")

Files

5 files · 350 MBWeights 350 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 5 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md2.62 KB6947a9170bba8f3ca0e4a60ea56ee0f2136c831f9cf13a1787cd85ba53adf034
config.json726 B7c189e2d86d897e05033853560bcc1c0401e484b4100dd8dc7cb1dee9f1a3cd3
model.safetensors350 MB3b53f1fb5d86d06d4f6bc95850df60b76d573d56a7f14bc24baee2e35386a08b
preprocessor_config.json205 B7c5696c28a1f140cbc21f8f904f1f3a76fdc4e344a523b0f0b1403b12355ee9a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
f78293f3a2 pinned now2026-11-15 02:50 UTC5 files · 350 MB

Use it

$ fw get legekka/AI-Anime-Image-Detector-ViT
# manifest sha256 61b205ecf8d0… · 350 MB · 5 files
$ fw verify ./AI-Anime-Image-Detector-ViT legekka/AI-Anime-Image-Detector-ViT
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/legekka/AI-Anime-Image-Detector-ViT.json --dir ./AI-Anime-Image-Detector-ViT $ python3 fw.py verify ./AI-Anime-Image-Detector-ViT ./legekka__AI-Anime-Image-Detector-ViT.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download legekka/AI-Anime-Image-Detector-ViT --revision f78293f3a21df50a2876917bada9920cd915e708 --local-dir ./AI-Anime-Image-Detector-ViT

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
6947a9170bba8f3ca0e4a60ea56ee0f2136c831f9cf13a1787cd85ba53adf034
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: legekka <huggingface.co/legekka>Newsgroups: alt.freeweights.visionSubject: AI-Anime-Image-Detector-ViTDate: 2026-11-15Commit: f78293fSigned: 2DC28CC7B26A283B ✓
Upstream
legekka/AI-Anime-Image-Detector-ViT
Pinned commit
f78293f3a21df50a2876917bada9920cd915e708
Manifest
AI-Anime-Image-Detector-ViT.json · .minisig
Manifest sha256
61b205ecf8d0f450bc3a742d3e50dcc1b03cc6b6aa39620805fe2502c43bc9da
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:50 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/legekka/AI-Anime-Image-Detector-ViT.json $ curl -O https://freeweights.allternit.com/manifests/legekka/AI-Anime-Image-Detector-ViT.json.minisig $ minisign -Vm AI-Anime-Image-Detector-ViT.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download legekka/AI-Anime-Image-Detector-ViT
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. AI-Anime-Image-Detector-ViT.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of AI-Anime-Image-Detector-ViT. Each has its own license check and page.

From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX
From: timm <huggingface.co/timm>Subject: beit_base_patch16_224.in22k_ft_in22k_in1k