Run this model with HF Jobs
Run Tamarillo/ai-image-forensics-guard-tiny on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Tamarillo/ai-image-forensics-guard-tiny. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Tamarillo/ai-image-forensics-guard-tiny on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Tamarillo/ai-image-forensics-guard-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tamarillo/ai-image-forensics-guard-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Tamarillo/ai-image-forensics-guard-tiny") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Tamarillo/ai-image-forensics-guard-tiny") model = AutoModelForImageClassification.from_pretrained("Tamarillo/ai-image-forensics-guard-tiny", device_map="auto") - Transformers.js
How to use Tamarillo/ai-image-forensics-guard-tiny with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Tamarillo/ai-image-forensics-guard-tiny'); - Notebooks
- Google Colab
- Kaggle
- Tamarillo/ai-image-forensics-guard-tiny
- Model Family & Recommended Tier (v2)
- 30-Second Quickstart (Exact 1-Line
transformersDrop-In) - Label Schema & Calibration (
calibration.json) - Benchmarks (Identical NVIDIA A100-SXM4-40GB 11-Model Evaluation)
- ONNX Parity & Same-Machine 4-Thread x86 CPU Latency (
bs=1) - v2 Training Recipe, Ablation Finding & Commercially Permissive Provenance
- Honest Limitations & Where Baselines Win
- License & Citation
- Model Family & Recommended Tier (v2)
Tamarillo/ai-image-forensics-guard-tiny
v2 Ultra-Fast Edge CPU & 44 MB Browser WASM Tier (22.1M, DINOv2-Small, 224px) β an Apache-2.0, social-media-recompression-hardened AI-generated image forensics detector (native AutoModelForImageClassification, zero trust_remote_code) designed as a 1-line drop-in replacement (id2label = {0: "artificial", 1: "human"}) for umm-maybe/AI-image-detector and Organika/sdxl-detector in Hugging Face image-classification pipelines, edge CPU sidecars, and client-side browser WASM (Transformers.js).
v2 Key Highlights
- v2 Edge & Browser WASM Upgrade (
22.1M,224px): Improves EER on every aggregate over v1 β 3-Corpus Unique Zero-Touch[U3]28.26%->27.53%, 4-Suite Zero-Touch[Z4]30.79%->29.92%, and 5-Suite Public Mean[5S]30.49%->29.28%([5S]AUC0.7655->0.7689, while[U3]/[Z4]AUC sit fractionally below v1:0.7871->0.7854and0.7612->0.7571), alongside major gains onSynthbuster(18.05%->14.40%),OpenFake Reddit(30.69%->28.88%), andCommFor-Eval(29.30%->26.70%). - Fastest Evaluated Model & Half-Size Browser WASM (
74.2 msCPU FP32;44.4 MBFP16 ONNX):1.88Γfaster thanumm-maybe/AI-image-detector(139.5 ms,353.7 MB) and faster thanCommunityForensics-ViT(91.7 ms) andAteeqq(99.2 ms), while cutting WASM download size in half (88.5 MB -> 44.4 MB,100.0%argmax parity,max Ξp=0.00249). - Honest Tradeoff: While
tinyv2 beats v1 on EER across all 3 aggregates, v1tinyretains lower EER on cleanOpenFake Core(36.05%vs.39.30%), andSigLIP-2tiers (Tamarillo v2 small22.79%,base19.34%[Z4]EER) achieve substantially lower EER; choosetinywhen<75 msCPU or44 MBbrowser WASM download size is the priority.
Model Family & Recommended Tier (v2)
- Interactive Browser WASM Demo:
Tamarillo/ai-image-forensics-guard-demo(runstinyv244.4 MB100.0%-parity FP16 ONNX 100% locally in-browser). - Companion Open Apache-2.0 Corpus:
Tamarillo/ai-image-forensics-bfree-2026(14,800train +800cross-generatorShuttle-3OOD test images).
| Model (v2) | Backbone | Params | Input Res | Social-Recomp EER β | Synthbuster EER β | 3-Corpus Unique [U3] (EER β / AUC β) | 4-Suite Zero-Touch [Z4] (EER β / AUC β) | CPU FP32 ONNX | Shipped ONNX |
|---|---|---|---|---|---|---|---|---|---|
Tamarillo/ai-image-forensics-guard-tiny (this repo) |
facebook/dinov2-small |
22.1M | 224Γ224 | 37.12% | 14.40% | 27.53% / 0.7854 | 29.92% / 0.7571 | 74.2 ms | 44.4 MB (FP16) / 88.5 MB (FP32) |
Tamarillo/ai-image-forensics-guard-small |
google/siglip2-base-patch16-224 |
92.9M | 224Γ224 | 26.17% | 10.70% | 21.66% / 0.8589 | 22.79% / 0.8497 | 98.3 ms | 171.8 MB (FP16) / 343.4 MB (FP32) |
Tamarillo/ai-image-forensics-guard-base |
google/siglip2-base-patch16-384 |
93.2M | 384Γ384 | 20.29% | 9.55% | 19.02% / 0.8761 | 19.34% / 0.8760 | 304.5 ms | 172.4 MB (FP16) / 344.6 MB (FP32) |
30-Second Quickstart (Exact 1-Line transformers Drop-In)
Requires transformers>=4.40 (zero trust_remote_code).
Operating-Point Note: At default
0.50argmax,Tamarillo/ai-image-forensics-guard-tinyachieves43.9%fake recall /20.2%real-photo FPR on cleanOpenFake Core,59.4%fake recall /2.0%real-photo FPR onSynthbuster, and59.5%fake recall /33.9%real FPR under heavySocial-Media Recompressedstress (512pxJPEG Q45 + WebP Q55).pipeline()outputs uncalibrated softmax probabilities (identical0.50argmax; optional temperatureT = 1.0810is stored incalibration.json).
pip install "transformers>=4.40" torch pillow
from PIL import Image
from transformers import pipeline
# Exact 1-line drop-in replacement for umm-maybe/AI-image-detector and Organika/sdxl-detector
# Label schema: id2label = {0: "artificial", 1: "human"}
detector = pipeline("image-classification", model="Tamarillo/ai-image-forensics-guard-tiny")
# Self-contained wiring smoke test (replace with: img = Image.open("photo.jpg").convert("RGB"))
img = Image.new("RGB", (512, 512), color=(128, 128, 128))
scores = detector(img)
print(scores)
# [{'label': 'human', 'score': ...}, {'label': 'artificial', 'score': ...}]
Direct PyTorch with Temperature Calibration (calibration.json)
import torch
from PIL import Image
from transformers import AutoImageProcessor, AutoModelForImageClassification
repo_id = "Tamarillo/ai-image-forensics-guard-tiny"
processor = AutoImageProcessor.from_pretrained(repo_id)
model = AutoModelForImageClassification.from_pretrained(repo_id).eval()
img = Image.new("RGB", (512, 512), color=(128, 128, 128))
inputs = processor(images=img, return_tensors="pt")
with torch.no_grad():
logits = model(**inputs).logits[0]
raw_probs = torch.softmax(logits, dim=-1)
cal_probs = torch.softmax(logits / 1.0810, dim=-1)
p_art = float(cal_probs[0])
verdict = "ARTIFICIAL" if p_art >= 0.50 else "HUMAN"
print(f"{verdict} | raw P(artificial)={float(raw_probs[0]):.4f} | cal P(artificial)={p_art:.4f}")
ONNX Runtime (CPU / Edge) & Browser WASM (Transformers.js)
pip install onnxruntime huggingface_hub "transformers>=4.40" pillow numpy
import numpy as np
import onnxruntime as ort
from huggingface_hub import hf_hub_download
from PIL import Image
from transformers import AutoImageProcessor
repo_id = "Tamarillo/ai-image-forensics-guard-tiny"
processor = AutoImageProcessor.from_pretrained(repo_id)
onnx_path = hf_hub_download(repo_id=repo_id, filename="onnx/model.onnx") # Fastest CPU: 74.2 ms (88.5 MB FP32); also onnx/model_fp16.onnx (44.4 MB)
sess = ort.InferenceSession(onnx_path, providers=["CPUExecutionProvider"])
img = Image.new("RGB", (512, 512), color=(128, 128, 128))
pixel_values = processor(images=img, return_tensors="np")["pixel_values"].astype(np.float32)
logits = sess.run(None, {"pixel_values": pixel_values})[0][0]
scaled = logits / 1.0810
ex = np.exp(scaled - scaled.max())
probs = ex / ex.sum()
print(f"cal P(artificial)={probs[0]:.4f} | cal P(human)={probs[1]:.4f}")
Browser / Node.js (Transformers.js v3)
npm install @huggingface/transformers
import { pipeline, RawImage } from "@huggingface/transformers";
const detector = await pipeline("image-classification", "Tamarillo/ai-image-forensics-guard-tiny", {
dtype: "fp16", // loads 100%-parity 44.4 MB onnx/model_fp16.onnx
});
// Self-contained 224x224 wiring smoke-test image (replace with an image URL, Blob, or file path)
const dummy = new RawImage(new Uint8ClampedArray(224 * 224 * 3).fill(128), 224, 224, 3);
const results = await detector(dummy, { top_k: 2 });
console.log(results); // [{ label: "artificial", score: ... }, { label: "human", score: ... }]
Recommended tier for client-side browser WASM (
44.4 MBFP16 download vs.88.5 MBFP32) and<75 msx86 CPU sidecars. (Note: CPU latency in the ONNX table is measured on 4-thread x86 Xeon where FP16 at82.42 msis slower than FP32 at74.21 msdue to x86 FP16 emulation; client-side browser WASM runtime latency was not separately benchmarked.) For stronger accuracy on 2026 generators, useTamarillo/ai-image-forensics-guard-small(92.9M,224px,<100 msCPU) orTamarillo/ai-image-forensics-guard-base(93.2M,384px).
Label Schema & Calibration (calibration.json)
| Class ID | Label | Meaning |
|---|---|---|
0 |
artificial |
AI-generated / synthetic image (diffusion, flow-matching DiT, GAN, or AI video frame). |
1 |
human |
Authentic human photograph. |
- Validation Calibration (
n=2,380generator-disjoint val): Val EER =1.98%, Val ROC-AUC =0.9971, temperatureT = 1.0810, calibrated ECE =0.0079. Reference validation cutoffs (5%FPR atΟ = 0.2495,1%FPR atΟ = 0.7655) are tighter than unseen wild generators; start atΟ = 0.50or tune on a small target-domain sample.
Benchmarks (Identical NVIDIA A100-SXM4-40GB 11-Model Evaluation)
All 11 models (3 Tamarillo v2 tiers, 3 Tamarillo v1 tiers, and 5 external Hugging Face incumbents) were evaluated head-to-head on identical frozen RGB images with zero evaluation images present in training. Full reproducible v2 scripts are bundled in this repository: scripts/synth_bfree_flux_v2.py, scripts/build_base_cache_v2.py, scripts/prepare_v2_manifests.py, scripts/train_image_v2.py, scripts/eval_image_suite.py, and scripts/export_image_onnx.py. Bold marks the best value in each column.
- Three Explicit Aggregates:
- 3-Corpus Unique Zero-Touch Mean (
[U3]): Equal mean overood_openfake_core(n=2,000,seed=201),ood_openfake_reddit(n=1,600,seed=202), andood_synthbuster(n=1,200,seed=203) β 100% disjoint images, real sources, and generators. - 4-Suite Zero-Touch Mean (
[Z4]): Addsood_social_recompressed(n=1,700,seed=204:512pxBilinear βJPEG Q45βWebP Q55derived fromOpenFake Core+Synthbuster). - 5-Suite Public Mean (
[5S]): Adds held-outeval_commfor_comp(n=2,000,seed=205, CVPR 2025CommunityForensics-Eval).
- 3-Corpus Unique Zero-Touch Mean (
- Thresholding Protocol: EER and ROC-AUC are threshold-free; Fake Recall / Real-Photo FPR in Table 2B use a fixed
0.50threshold (no test-set threshold tuning).
1. Core 5-Suite Public Benchmark (EER % β and ROC-AUC β)
| Model | Params | OpenFake Core [Z] | OpenFake Reddit [Z] | Synthbuster [Z] | Social-Recomp [Stress] | CommFor-Eval | 3-Corpus Unique [U3] | 4-Suite [Z4] | 5-Suite Mean [5S] |
|---|---|---|---|---|---|---|---|---|---|
Tamarillo v2 tiny (DINOv2-S, 224px) |
22.1M | 39.30% (0.641) | 28.88% (0.790) | 14.40% (0.926) | 37.12% (0.672) | 26.70% (0.816) | 27.53% / 0.7854 | 29.92% / 0.7571 | 29.28% / 0.7689 |
Tamarillo v2 small (SigLIP2-B, 224px) |
92.9M | 24.85% (0.831) | 29.44% (0.785) | 10.70% (0.962) | 26.17% (0.822) | 22.10% (0.877) | 21.66% / 0.8589 | 22.79% / 0.8497 | 22.65% / 0.8552 |
Tamarillo v2 base (SigLIP2-B, 384px) |
93.2M | 21.00% (0.853) | 26.50% (0.802) | 9.55% (0.973) | 20.29% (0.876) | 20.70% (0.889) | 19.02% / 0.8761 | 19.34% / 0.8760 | 19.61% / 0.8786 |
Tamarillo v1 tiny |
22.1M | 36.05% (0.696) | 30.69% (0.763) | 18.05% (0.903) | 38.36% (0.684) | 29.30% (0.783) | 28.26% / 0.7871 | 30.79% / 0.7612 | 30.49% / 0.7655 |
Tamarillo v1 small (ConvNeXtV2-T, 384px) |
27.9M | 36.25% (0.688) | 33.31% (0.716) | 9.10% (0.971) | 30.71% (0.764) | 23.70% (0.857) | 26.22% / 0.7918 | 27.34% / 0.7847 | 26.61% / 0.7993 |
Tamarillo v1 base |
93.2M | 25.55% (0.805) | 26.75% (0.807) | 9.55% (0.961) | 21.29% (0.867) | 17.60% (0.911) | 20.62% / 0.8580 | 20.79% / 0.8603 | 20.15% / 0.8704 |
haywoodsloan/ai-image-detector-deploy |
195.2M | 13.15% (0.931) | 21.56% (0.882) | 19.05% (0.890) | 26.49% (0.823) | 22.50% (0.839) | 17.92% / 0.9012 | 20.06% / 0.8815 | 20.55% / 0.8729 |
buildborderless/CommunityForensics-DeepfakeDet-ViT |
21.8M | 20.55% (0.877) | 33.69% (0.733) | 24.95% (0.812) | 39.95% (0.643) | 9.35% (0.971) | 26.40% / 0.8072 | 29.78% / 0.7662 | 25.70% / 0.8072 |
Ateeqq/ai-vs-human-image-detector |
92.9M | 17.05% (0.906) | 21.88% (0.859) | 26.70% (0.812) | 27.29% (0.812) | 42.60% (0.615) | 21.88% / 0.8591 | 23.23% / 0.8475 | 27.10% / 0.8009 |
Organika/sdxl-detector (CC-BY-NC-3.0) |
86.8M | 38.65% (0.653) | 38.62% (0.650) | 27.45% (0.795) | 41.83% (0.624) | 27.20% (0.800) | 34.91% / 0.6995 | 36.64% / 0.6805 | 34.75% / 0.7045 |
umm-maybe/AI-image-detector |
86.8M | 41.40% (0.628) | 31.75% (0.740) | 38.75% (0.652) | 39.12% (0.649) | 43.20% (0.585) | 37.30% / 0.6733 | 37.76% / 0.6671 | 38.84% / 0.6508 |
2A. Per-2026-Generator ROC-AUC on OpenFake Core (10 Major 2025β2026 Generators)
| Model | illustrious |
wan-2.5 |
midjourney-7 |
recraft-v3 |
veo-3 |
ernie-turbo |
z-image-turbo |
gpt-image-1.5 |
gpt-image-2 |
flux.2-klein-9b |
|---|---|---|---|---|---|---|---|---|---|---|
Tamarillo v2 tiny (DINOv2-S, 224px) |
0.797 | 0.837 | 0.760 | 0.732 | 0.812 | 0.760 | 0.700 | 0.583 | 0.433 | 0.300 |
Tamarillo v2 small (SigLIP2-B, 224px) |
0.929 | 0.952 | 0.877 | 0.868 | 0.879 | 0.888 | 0.897 | 0.811 | 0.706 | 0.615 |
Tamarillo v2 base (SigLIP2-B, 384px) |
0.958 | 0.973 | 0.910 | 0.915 | 0.900 | 0.902 | 0.922 | 0.878 | 0.734 | 0.589 |
Tamarillo v1 tiny |
0.825 | 0.847 | 0.748 | 0.719 | 0.851 | 0.800 | 0.746 | 0.676 | 0.504 | 0.439 |
Tamarillo v1 small (ConvNeXtV2-T, 384px) |
0.868 | 0.919 | 0.826 | 0.747 | 0.739 | 0.793 | 0.745 | 0.681 | 0.642 | 0.330 |
Tamarillo v1 base |
0.963 | 0.958 | 0.892 | 0.884 | 0.873 | 0.868 | 0.865 | 0.849 | 0.679 | 0.479 |
haywoodsloan/ai-image-detector-deploy |
0.995 | 0.996 | 0.994 | 0.982 | 0.988 | 0.998 | 0.947 | 0.987 | 0.963 | 0.752 |
buildborderless/CommunityForensics-DeepfakeDet-ViT |
0.993 | 0.965 | 0.926 | 0.967 | 0.940 | 0.863 | 0.903 | 0.891 | 0.794 | 0.667 |
Ateeqq/ai-vs-human-image-detector |
0.981 | 0.986 | 0.834 | 0.817 | 0.967 | 0.916 | 0.936 | 0.862 | 0.934 | 0.845 |
Organika/sdxl-detector (CC-BY-NC-3.0) |
0.856 | 0.895 | 0.833 | 0.669 | 0.748 | 0.593 | 0.574 | 0.751 | 0.741 | 0.377 |
umm-maybe/AI-image-detector |
0.377 | 0.583 | 0.497 | 0.618 | 0.696 | 0.635 | 0.748 | 0.753 | 0.579 | 0.622 |
2B. Fixed Ο = 0.50 Operating Point (Fake Recall / Real FPR) & Cross-Generator Shuttle-3 OOD (n=800)
| Model | OpenFake Core @0.50 (Rec / Real FPR) | Synthbuster @0.50 (Rec / Real FPR) | Social-Recomp @0.50 (Rec / Real FPR) | Shuttle-3 2026 OOD (EER β / AUC β)* |
|---|---|---|---|---|
Tamarillo v2 tiny (DINOv2-S, 224px) |
43.9% / 20.2% | 59.4% / 2.0% | 59.5% / 33.9% | 0.62% (0.9999) |
Tamarillo v2 small (SigLIP2-B, 224px) |
59.3% / 8.3% | 62.3% / 0.0% | 71.2% / 23.0% | 1.12% (0.9997) |
Tamarillo v2 base (SigLIP2-B, 384px) |
46.3% / 3.6% | 61.8% / 0.0% | 73.6% / 14.7% | 0.12% (1.0000) |
Tamarillo v1 tiny |
41.1% / 15.1% | 44.0% / 1.5% | 56.2% / 30.7% | 2.00% (0.9982) |
Tamarillo v1 small (ConvNeXtV2-T, 384px) |
32.7% / 6.7% | 49.2% / 0.0% | 53.5% / 19.0% | 1.25% (0.9995) |
Tamarillo v1 base |
47.2% / 3.3% | 55.8% / 0.0% | 74.1% / 15.7% | 0.62% (0.9996) |
haywoodsloan/ai-image-detector-deploy |
72.8% / 2.9% | 61.3% / 6.0% | 30.7% / 0.9% | 2.12% (0.9959) |
buildborderless/CommunityForensics-DeepfakeDet-ViT |
26.2% / 0.0% | 53.0% / 1.5% | 8.1% / 1.1% | 2.75% (0.9980) |
Ateeqq/ai-vs-human-image-detector |
83.5% / 17.6% | 51.8% / 9.5% | 72.5% / 27.1% | 5.25% (0.9841) |
Organika/sdxl-detector (CC-BY-NC-3.0) |
49.5% / 22.9% | 52.2% / 13.0% | 31.7% / 16.7% | 17.12% (0.9057) |
umm-maybe/AI-image-detector |
39.5% / 16.5% | 27.5% / 11.0% | 60.1% / 37.7% | 35.00% (0.7196) |
*Note on Shuttle-3 2026 OOD (n=800 from Tamarillo/ai-image-forensics-bfree-2026): shuttleai/shuttle-3-diffusion is never seen during training, though it shares the 16-ch FLUX.1 architecture family with Tamarillo v2's FLUX.1-schnell training subset (and pairs with disjoint commercial COCO photos); it is excluded from [U3], [Z4], and [5S] headline aggregates.
ONNX Parity & Same-Machine 4-Thread x86 CPU Latency (bs=1)
Hardware: GCP a2-highgpu-1g (Intel Xeon Cascade Lake @ 2.20 GHz, AVX-512, 4 ORT intra-op threads, bs=1, median p50 ms over 25 timed runs after 5 warmups). Same-machine incumbent CPU FP32 ONNX baselines:
umm-maybe/AI-image-detector(86.8M,224px):139.50 msOrganika/sdxl-detector(86.8M,224px,CC-BY-NC-3.0):139.23 msAteeqq/ai-vs-human-image-detector(92.9M,224px):99.24 msbuildborderless/CommunityForensics-DeepfakeDet-ViT(21.8M,384px):91.74 ms
| Artifact | Input Res | File Size | Parity (n=64 OpenFake Core: Argmax / Max Ξp / Mean Ξp) |
4-Thread CPU p50 | 4-Thread CPU p90 |
|---|---|---|---|---|---|
onnx/model.onnx (FP32) |
224Γ224 | 88.5 MB | 100.0% / 0.00000 / 0.00000 |
74.21 ms | 77.90 ms |
onnx/model_fp16.onnx (FP16) |
224Γ224 | 44.4 MB | 100.0% / 0.00249 / 0.00032 |
82.42 ms | 84.50 ms |
- Quantization Hygiene: Dynamic INT8 quantization (
max Ξp = 0.293,argmax = 96.9%) failed our strict forensic parity gate (max Ξp β€ 0.015,argmax β₯ 99%) and was intentionally withheld.Tamarillo/ai-image-forensics-guard-tinyships ONLY100.0%-argmax-parity FP32 + FP16 ONNX verified acrossn=64held-outOpenFake Coreimages.
v2 Training Recipe, Ablation Finding & Commercially Permissive Provenance
- Training Strategy: Direct canonical fine-tuning of
facebook/dinov2-small(22.1M,224Γ224) for 4 epochs with Focal Smooth CE (gamma=1.0,smoothing=0.03), differential LR (head5Γ), and EMA (0.996). (Controlled ablations showed pure supervised training on the full-diffusion corpus outperformed logit distillation from an overconfident0.59%-val-EER teacher on unseenOpenFake Coregenerators.) - Clean/Degraded Forensic Curriculum: Every training batch applies 35% clean native-scale crops (zero resize, zero JPEG recompression, preserving subtle 16-ch rectified-flow & VAE decoder micro-artifacts) + 65% symmetric social-media degradation (identical JPEG Q35β95, WebP Q40β95, double-JPEG, Bilinear/Bicubic/Lanczos downscale, and mild blur/UnsharpMask applied identically to both authentic and synthetic images).
- Key v2 Ablation Finding (Full-Diffusion vs. VAE-Only Reconstructions) & Commercial Filtering: Controlled ablations on our flagship
base(384px) backbone showed that over-weighting VAE-only self-reconstructions (B-Freepairs alone without diffusion denoising) induced a sharpness/blur inversion shortcut on crispflux.2-klein-9bimages against modern smartphoneDOCCIphotos. Training v2 exclusively on high-density full-diffusion generations (31,531train /2,380val) β combining1,4001:1 matched Apache-2.0unsloth/FLUX.1-schnellpairs fromTamarillo/ai-image-forensics-bfree-2026,3,6001:1 matched Apache-2.0SANA-Sprint/SANA-1.5/Lumina-Image-2.0pairs (all paired exclusively with commercial MS-COCO 2017train2017photos strictly filtered tolicense β {4, 7, 8}=CC-BY-2.0/ Public Domain, excluding allCC-BY-NC,CC-BY-SA,CC-BY-ND, andval2017),12,000finedet/openimages(CC-BY-2.0/4.0), and12,000OwensLab/CommunityForensics(Systematic + Manual,CC-BY-4.0,nsfw_flag=False) β achieved0.59%val EER &19.34%[Z4]EER onbase(1.98%val EER &29.92%[Z4]EER on thistinytier).
Honest Limitations & Where Baselines Win
- Capacity &
224pxDINOv2 Tradeoff: At22.1M(224Γ224),Tamarillo/ai-image-forensics-guard-tinytrails ourSigLIP-2tiers (Tamarillo v2 small22.79%,base19.34%Z4 EER) and8.8Γlarger GPU-onlyhaywoodsloan(20.06%Z4 EER), especially on held-outflux.2-klein-9b(0.300AUC vs.Ateeqq0.845) andgpt-image-2(0.433AUC). CommunityForensics-EvalHome-Benchmark Advantage:buildborderless/CommunityForensics-DeepfakeDet-ViT(9.35%EER) outperforms Tamarillo on its homeeval_commfor_compsplit (trained on all 2.7M CommunityForensics images vs. Tamarillo's12Ksubsample), while degrading sharply (39.95%EER,8.1%recall) underSocial-Media Recompressedstress.- Operating-Point Tradeoffs & Forensic Edge Cases: On clean
OpenFake Core, default0.50is conservative (43.9%fake recall at20.2%real-photo FPR onTamarillo/ai-image-forensics-guard-tiny), whereas heavy social-media recompression raises real-photo FPR (33.9%real FPR at59.5%fake recall). Binary whole-image detectors can struggle on partial AI inpainting / local edits, heavily filtered smartphone photos, UI screenshots, and 3D CGI / digital art. Combine with C2PA credentials, EXIF/metadata forensics, and human review for high-stakes decisions. - Honest ONNX Quantization Scope: Dynamic INT8 quantization drifted beyond our strict forensic parity gate (
max Ξp β€ 0.015,argmax β₯ 99%) and was intentionally omitted; all 3 v2 tiers ship exact-parityFP32andFP16ONNX (100.0%argmax agreement,max Ξp β€ 0.0025).
License & Citation
Released under the Apache-2.0 License by Tamarillo. All base backbones and filtered training subsets carry commercially permissive licenses (Apache-2.0, CC-BY-2.0, CC-BY-4.0, Public Domain; all MS-COCO 2017 images were strictly filtered to license β {4, 7, 8}, excluding all CC-BY-NC, CC-BY-SA, and CC-BY-ND photos).
@misc{tamarillo_ai_image_forensics_guard_v2_2026,
title = {Tamarillo AI-Image Forensics Guard v2: Apache-2.0 Social-Media-Hardened Visual Deepfake Detectors},
author = {Tamarillo Open-Model Lab},
year = {2026},
howpublished = {\url{https://huggingface.co/Tamarillo/ai-image-forensics-guard-tiny}},
license = {Apache-2.0}
}
- Downloads last month
- 215
Model tree for Tamarillo/ai-image-forensics-guard-tiny
Base model
facebook/dinov2-small
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Tamarillo/ai-image-forensics-guard-tiny');