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
Commit History
-
Upload WIN_20241120_09_38_38_Pro.jpg
Verified signature7db082c
-
Update README.md
c7e223b -
Update README.md
53e5417 -
Update README.md
1ceaf11 -
Update README.md
3b3defb -
Update README.md
ce185ac
-
Update README.md
a68a537 -
Update README.md
c7d8eb2 -
Update README.md
This 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-545d9d6af226f1b17f2
-
Update README.md
Forgot to add the license on initial publication.982d84d
-
Commit From AutoTrain
881d03a -
initial commit
6c071a0