Instructions to use SirBadr/my_awesome_classification_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SirBadr/my_awesome_classification_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SirBadr/my_awesome_classification_model") 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("SirBadr/my_awesome_classification_model") model = AutoModelForImageClassification.from_pretrained("SirBadr/my_awesome_classification_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("SirBadr/my_awesome_classification_model")
model = AutoModelForImageClassification.from_pretrained("SirBadr/my_awesome_classification_model", device_map="auto")Quick Links
YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
This model classifies images in two classes {original, generated by AI}
- Downloads last month
- 3
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="SirBadr/my_awesome_classification_model") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")