Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Instructions to use NYUAD-ComNets/NYUAD_AI-generated_images_detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NYUAD-ComNets/NYUAD_AI-generated_images_detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="NYUAD-ComNets/NYUAD_AI-generated_images_detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("NYUAD-ComNets/NYUAD_AI-generated_images_detector") model = AutoModelForImageClassification.from_pretrained("NYUAD-ComNets/NYUAD_AI-generated_images_detector") - Notebooks
- Google Colab
- Kaggle
AI-generated_images_detector
This model achieves the following results on the evaluation set:
- Loss: 0.0987
- Accuracy: 0.9736
To utilize this model
from PIL import Image
from transformers import pipeline
classifier = pipeline("image-classification", model="NYUAD-ComNets/NYUAD_AI-generated_images_detector")
image=Image.open("path_to_image")
pred=classifier(image)
print(pred)
Training and evaluation data
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0431 | 0.55 | 100 | 0.1672 | 0.9568 |
| 0.0139 | 1.1 | 200 | 0.2338 | 0.9398 |
| 0.0201 | 1.66 | 300 | 0.1291 | 0.9655 |
| 0.0023 | 2.21 | 400 | 0.1147 | 0.9709 |
| 0.0033 | 2.76 | 500 | 0.0987 | 0.9736 |
BibTeX entry and citation info
@article{aldahoul2024detecting,
title={Detecting AI-Generated Images Using Vision Transformers: A Robust Approach for Safeguarding Visual Media Integrity},
author={AlDahoul, Nouar and Zaki, Yasir},
journal={Available at SSRN},
year={2024}
}
@misc{ComNets,
url={https://huggingface.co/NYUAD-ComNets/NYUAD_AI-generated_images_detector](https://huggingface.co/NYUAD-ComNets/NYUAD_AI-generated_images_detector)},
title={NYUAD_AI-generated_images_detector},
author={Nouar AlDahoul, Yasir Zaki}
}
- Downloads last month
- 297
Spaces using NYUAD-ComNets/NYUAD_AI-generated_images_detector 4
π
aznasut/ViT_Deepfake_Detection
π»
thrimurthi2025/Aiornot2
π
meldaaa/deteksi-foto-ai
π
RaidenIppen/antai-detector
Evaluation results
- Accuracy on imagefoldervalidation set self-reported0.974