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