Downloads · 30 days
0
dashtoon/CLIP_aievals
CLIP_aievals is a machine learning model from dashtoon. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model is a CLIP-based classifier fine-tuned to detect AI-generated images across a wide range of generative models. It is trained using a mixture of real datasets (FFHQ, COCO, ImageNet, AFHQ, etc.) and synthetic…
Downloads · 30 days
0
Access
Public
Updated Nov 25, 2025
Repo size
3.9 GB
Likes
0
Public
Click a slice to open those files.
.pt3.9 GB · 100%
From the Hugging Face model README
This model is a CLIP-based classifier fine-tuned to detect AI-generated images across a wide range of generative models. It is trained using a mixture of real datasets (FFHQ, COCO, ImageNet, AFHQ, etc.) and synthetic datasets from diffusion, GANs, and hybrid architectures.
CLIP_aievals is designed for robust AI-vs-Real detection by leveraging a CLIP Vision Transformer backbone and a lightweight classification head. It is optimized for generalization across unseen generative sources and large-scale evaluation pipelines.
This repository contains the model weights (clip_vith14_argus.pt) and supporting configuration files used for inference.
Two-layer MLP:
The training pipeline uses a mixture of curated datasets:
Labels are binary: 0 = real, 1 = fake.
Evaluated on 850k+ mixed-source images:
Performance is dataset-dependent: high confidence on many synthetic sources, lower recall on advanced diffusion models exhibiting strong photorealism.
Lower recall on highly realistic diffusion models.
Model can produce false positives on:
Not calibrated for forensic authenticity analysis.
from src.model import AIImageDetector
from PIL import Image
import torch
model = AIImageDetector(
clip_model_name="ViT-H-14",
device="cuda",
dropout=0.1
)
model.load_state_dict(torch.load("clip_vith14_argus.pt", map_location="cpu"))
model.eval()
img = Image.open("your_image.jpg")
prob = model.predict(img) # returns probability of AI generation
print(prob)