Downloads · 30 days
0
nahid112376/ai-detection-cnn
ai-detection-cnn is a image classification model from nahid112376. Use it when you need a label for an image. The card lists the license as mit.
This model detects AI-generated images using spatial features extracted from Qwen2.5-VL.
Downloads · 30 days
0
Access
Public
Updated Dec 31, 2025
Repo size
99.3 MB
Likes
0
Public
Click a slice to open those files.
.pth99.3 MB · 100%
From the Hugging Face model README
This model detects AI-generated images using spatial features extracted from Qwen2.5-VL.
from inference import test_image
# Test an image
result = test_image(
"path/to/image.jpg",
hf_repo_id="nahid112376/ai-detection-cnn",
threshold=0.5
)
print(f"Label: {result['label']}")
print(f"Confidence: {result['confidence']*100:.2f}%")
pip install torch transformers huggingface_hub pillow numpy
pip install qwen-vl-utils
cnn_regression_model.pth: Trained model weightsinference.py: Inference scriptextract_features.py: Feature extraction scriptIf you use this model, please cite:
@misc{ai-detection-cnn,
author = {bartazable},
title = {AI Detection CNN Model},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/nahid112376/ai-detection-cnn}}
}