aharley/rvl_cdip
Updated • 1.13k • 85
How to use cquentin48/deep_learning with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="cquentin48/deep_learning", device_map="auto")
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("cquentin48/deep_learning")
model = AutoModelForImageClassification.from_pretrained("cquentin48/deep_learning", device_map="auto")