Run this model with HF Jobs
Run umm-maybe/AI-image-detector on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/umm-maybe/AI-image-detector. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/umm-maybe/AI-image-detector on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use umm-maybe/AI-image-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use umm-maybe/AI-image-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="umm-maybe/AI-image-detector") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("umm-maybe/AI-image-detector", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse filesThis app is a proof-of-concept demonstration of using a ViT model to predict whether an artistic image was generated using AI.
It was created in October 2022, and as such, the training data did not include any samples generated by Midjourney 5, SDXL, or DALLE-3. It may nonetheless be able to correctly identify samples from these more recent models due to being trained on outputs of their predecessors.
Furthermore the intended scope of this tool is artistic images; that is to say, it is not a deepfake photo detector, and general computer imagery (webcams, screenshots, etc.) may throw it off.
In general, this tool can only serve as one of many potential indicators that an image was AI-generated. Images scoring as very probably artificial (e.g. 90% or higher) could be referred to a human expert for further investigation, if needed.
For more information please see the blog post describing this project at:
https://medium.com/@matthewmaybe/can-an-ai-learn-to-identify-ai-art-545d9d6af226
13 unmodified lines14151617181913 unmodified linesexample_title: Palaceco2_eq_emissions:emissions: 7.940487247386902---# Model Trained Using AutoTrain13 unmodified lines1415161718192013 unmodified linesexample_title: Palaceco2_eq_emissions:emissions: 7.940487247386902license: cc-by-4.0---# Model Trained Using AutoTrain