Downloads · 30 days
57
13% of all-time downloads
onnx-community/ai-source-detector-ONNX
ai-source-detector-ONNX is a image classification model from onnx-community. Use it when you need a label for an image. It is set up for transformers.js. The card lists the license as apache-2.0.
This is an ONNX version of yaya36095/ai-source-detector. It was automatically converted and uploaded using this Hugging Face Space.
Downloads · 30 days
57
13% of all-time downloads
All-time downloads
447
Public
Repo size
845 MB
Likes
0
Public
Click a slice to open those files.
.onnx931 MB · 100%
From the Hugging Face model README
This is an ONNX version of yaya36095/ai-source-detector. It was automatically converted and uploaded using this Hugging Face Space.
See the pipeline documentation for image-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageClassificationPipeline
Detects and classifies the source of AI-generated images into five classes
(stable_diffusion, midjourney, dalle, real, other_ai).
| Class | Images |
|---|---|
| Stable Diffusion | 12 000 |
| Midjourney | 10 500 |
| DALL-E 3 | 9 400 |
| Real | 11 800 |
| Other AI | 8 200 |
Total ≈ 52 k images - 80 % train / 10 % val / 10 % test.
| Metric | Top-1 | Macro F1 |
|---|---|---|
| Validation | 92.8 % | 0.928 |
| Test | 91.6 % | 0.914 |
from transformers import ViTImageProcessor, ViTForImageClassification, pipeline
classifier = pipeline(
task="image-classification",
model="yaya36095/ai-source-detector",
top_k=1
)
classifier("demo.jpg")
# → [{'label': 'stable_diffusion', 'score': 0.97}]