Team Ai
Modelpublic

NYUAD-ComNets/NYUAD_AI-generated_images_detector

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
11likes1.3kdownloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

AI-generatedimagesdetector

This model achieves the following results on the evaluation set:

  • —Loss: 0.0987
  • —Accuracy: 0.9736

To utilize this model

python

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 LossEpochStepValidation LossAccuracy
0.04310.551000.16720.9568
0.01391.12000.23380.9398
0.02011.663000.12910.9655
0.00232.214000.11470.9709
0.00332.765000.09870.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}
}