Views
No views yet
image-classification: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.ImageClassificationPipeline| Layer | Model | Author | License |
|---|---|---|---|
| Base Architecture | google/vit-base-patch16-224-in21k | Apache 2.0 | |
| AI Detection Fine-tune | dima806/ai_vs_real_image_detection | dima806 | Apache 2.0 |
| This Model | capcheck/ai-image-detection | CapCheck | Apache 2.0 |
1from transformers import pipeline
2
3detector = pipeline("image-classification", model="capcheck/ai-image-detection")
4result = detector("path/to/image.jpg")
5
6# Output:
7# [{"label": "Fake", "score": 0.95}, {"label": "Real", "score": 0.05}]| Label | Description |
|---|---|
Real | Authentic photograph or real-world image |
Fake | AI-generated or synthetically created image |
1@misc{capcheck-ai-detection,
2 author = {CapCheck},
3 title = {AI Image Detection Model},
4 year = {2024},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/capcheck/ai-image-detection},
7 note = {Based on dima806/ai_vs_real_image_detection, fine-tuned from google/vit-base-patch16-224-in21k}
8}