TrueVision-AI

Computer vision classifier built to distinguish real photographs (0) from AI-generated images (1) using fine-tuned vision backbones (EfficientNet-B0 and SwinV2-Huge-192), multi-view test-time augmentation (TTA) with high-frequency/Laplacian calibration, and exported/quantized inference artifacts.

Model Lineage: Base vs. Fine-Tuning & Quantization / Exports

  • Base Backbones: Pretrained EfficientNet-B0 (~5.29M parameters) and SwinV2-Huge-192
  • Fine-Tuning & Calibration: Fine-tuned across realworld_v3 and realworld_v4 group-isolated splits (camA, camB, camC vs. genFlux, genMJ, genSDXL) with canonical labels (0 -> real, 1 -> ai_generated) and multi-view TTA + local high-frequency noise calibration (scripts/check_image.py).
  • Checkpoints, Exports & Quantization:
    • PyTorch Checkpoints: best_model.pt, efficientnet_b0_robust_v4.pt, and swinv2_huge_192_fp16.pt (~1.03 GB)
    • Runtime Exports: truevision_efficientnet_b0_v3.onnx and truevision_efficientnet_b0_v3.torchscript.pt

Benchmark: Base Model vs. Calibrated / Fine-Tuned TrueVision-AI

Base vs Calibrated Benchmark Domain Robustness Benchmark Model Size Comparison

Configuration / Stage Real (0) Recall AI-Generated (1) Recall Notes
Base Model (Raw Logits) 0.78 0.74 Baseline uncalibrated logits
Calibrated + TTA + Freq 0.94 0.93 Multi-view TTA + Laplacian high-freq features
SwinV2-Huge-192 (FP32) 0.96 0.95 High-capacity fp16 checkpoint (swinv2_huge_192_fp16.pt)

Quick Usage

# Check an image with calibrated multi-view TTA + high-frequency scoring
python3 scripts/check_image.py --image path/to/image.jpg

# Launch Streamlit app & Media Extractor (PDF, DOCX, ZIP, image uploads)
streamlit run app/streamlit_app.py
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Evaluation results

  • Real (0) Recall on TrueVision Real vs AI-Generated Eval
    self-reported
    0.940
  • AI-Generated (1) Recall on TrueVision Real vs AI-Generated Eval
    self-reported
    0.930