mrojasfallas/wonders-of-the-world-images
Viewer โข Updated โข 3.85k โข 8
How to use mariamhsein16/WondersofWorld with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-classification", model="mariamhsein16/WondersofWorld")
pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("mariamhsein16/WondersofWorld")
model = AutoModelForImageClassification.from_pretrained("mariamhsein16/WondersofWorld", device_map="auto")Base model
microsoft/resnet-50