Instructions to use prithivMLmods/Mirage-Photo-Classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Mirage-Photo-Classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="prithivMLmods/Mirage-Photo-Classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForImageClassification processor = AutoProcessor.from_pretrained("prithivMLmods/Mirage-Photo-Classifier") model = AutoModelForImageClassification.from_pretrained("prithivMLmods/Mirage-Photo-Classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1 unmodified line2345567891011121314151617181 unmodified linelicense: apache-2.0datasets:- anson-huang/mirage-news------```pyClassification Report: precision recall f1-score support
Real 0.9781 0.9132 0.9446 5000 Fake 0.9186 0.9796 0.9481 5000
accuracy 0.9464 10000 macro avg 0.9484 0.9464 0.9463 10000weighted avg 0.9484 0.9464 0.9463 10000```
README.md+14-1