File size: 3,272 Bytes
b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf b2c74fe 67eacdf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
---
license: apache-2.0
base_model: dima806/ai_vs_human_generated_image_detection
tags:
- image-classification
- vision
- ai-detection
- deepfake-detection
- vit
metrics:
- accuracy
- f1
pipeline_tag: image-classification
---
# CapCheck AI vs Human-Generated Image Detection
Vision Transformer (ViT) fine-tuned for detecting AI-generated images.
Uses newer training data than the original CIFAKE-based model.
## Model Lineage & Attribution
This model builds on the work of others:
| Layer | Model | Author | License |
|-------|-------|--------|---------|
| Base Architecture | [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) | Google | Apache 2.0 |
| AI Detection Fine-tune | [dima806/ai_vs_human_generated_image_detection](https://huggingface.co/dima806/ai_vs_human_generated_image_detection) | dima806 | Apache 2.0 |
| This Model | capcheck/ai-human-generated-image-detection | CapCheck | Apache 2.0 |
**Special thanks to:**
- **Google** for the Vision Transformer (ViT) architecture
- **dima806** for fine-tuning on AI vs human-generated image datasets
## Model Description
- **Architecture**: ViT-Base (86M parameters)
- **Input Size**: 224x224 pixels
- **Training Data**: AI-generated vs human-created images (newer dataset than CIFAKE)
- **Task**: Binary classification (human vs AI-generated)
## Usage
```python
from transformers import pipeline
detector = pipeline("image-classification", model="capcheck/ai-human-generated-image-detection")
result = detector("path/to/image.jpg")
# Output:
# [{"label": "AI-generated", "score": 0.95}, {"label": "human", "score": 0.05}]
```
## Labels
| Label | Description |
|-------|-------------|
| `human` | Authentic photograph or human-created image |
| `AI-generated` | AI-generated or synthetically created image |
## Comparison with capcheck/ai-image-detection
| Feature | ai-image-detection | ai-human-generated-image-detection |
|---------|-------------------|-------------------------------------|
| Source | dima806/ai_vs_real_image_detection | dima806/ai_vs_human_generated_image_detection |
| Training Data | CIFAKE dataset | Newer AI vs human dataset |
| Labels | `REAL` / `FAKE` | `human` / `AI-generated` |
| Handle | `ai-image-detection` | `ai-human-generated-image-detection` |
## Limitations
- May have reduced accuracy on very new AI generators not in training data
- Heavily compressed images (low JPEG quality) can affect results
- Works best on images with clear subjects (224x224+ pixels)
## Intended Use
- Content moderation and authenticity verification
- Research into AI-generated content detection
- Educational purposes
**Not intended for**:
- Making consequential decisions without human review
- Law enforcement evidence without corroborating sources
## License
Apache 2.0 (inherited from Google ViT and dima806's fine-tuned model)
## Citation
```bibtex
@misc{capcheck-ai-human-generated-detection,
author = {CapCheck},
title = {AI vs Human-Generated Image Detection Model},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/capcheck/ai-human-generated-image-detection},
note = {Based on dima806/ai_vs_human_generated_image_detection, fine-tuned from google/vit-base-patch16-224-in21k}
}
```
|