Skip to content
image-classification Β· wild OOD Photos Β· JPEG/WebP Β· Grayscale Β· Crop/Upscale WASM q8 Β· 88.94 MB License: Apache-2.0

Wild: OOD Photography, Compression, Lineart & Cropping Stress Lab

As the upstream model card notes, this ViT was trained on 512Γ—512 anime images with bilinear random-crop augmentation. Probe how aggressively JPEG/WebP compression, grayscale lineart conversion, 128β†’512 upscaling, crops/rotations, and out-of-domain photographs flip its real vs ai logits.

1 Β· Compression, lineart & crop stress probe

Initialising model loader…

transform: clean (512Γ—512)

Baseline P(ai)–
Perturbed P(ai)–
Ξ” P(ai) shift–
Mean |Ξ” P(ai)|–
Verdict flips–
Entropy–
9-step compression, lineart, resampling & geometry stress table
Perturbation Group Transform P(ai) Ξ” P(ai) Verdict Flip Latency
Run the full 9-step stress suite to populate the shift & flip table.

2 Β· Out-of-domain photography & chart guardrail audit

Because AI-Anime-Image-Detector-ViT only knows two labels (real anime vs ai anime) trained on illustrations, it has no out-of-domain / not-anime class. Probe four real-world non-anime images below to observe how softmax forces an arbitrary verdict.

Ready once model loads.

Out-of-domain non-anime inputs evaluated live
Asset Actual domain Forced ViT verdict P(ai) Logit margin Guardrail interpretation
Click "Run 4-way OOD domain probe" to evaluate non-anime photography and charts.

See inside the code

Show the code β€” anime-core.mjs: evaluatePerturbation() & summarizeStressSuite()
Show the code β€” anime.js: renderPerturbedInput() (JPEG/WebP reencode, 128β†’512 upscale, filters)

References