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) andSwinV2-Huge-192 - Fine-Tuning & Calibration: Fine-tuned across
realworld_v3andrealworld_v4group-isolated splits (camA,camB,camCvs.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.onnxandtruevision_efficientnet_b0_v3.torchscript.pt
- PyTorch Checkpoints:
Benchmark: Base Model vs. Calibrated / Fine-Tuned TrueVision-AI
| 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
Evaluation results
- Real (0) Recall on TrueVision Real vs AI-Generated Evalself-reported0.940
- AI-Generated (1) Recall on TrueVision Real vs AI-Generated Evalself-reported0.930


