How to use smc/Electric_Pole_with_or_without_transformer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="smc/Electric_Pole_with_or_without_transformer") 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("smc/Electric_Pole_with_or_without_transformer") model = AutoModelForImageClassification.from_pretrained("smc/Electric_Pole_with_or_without_transformer")
Classify your electric pole images