Upload model c7642b8
Ryan Ramos commited on
How to use Ramos-Ramos/dino-resnet-50 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("image-feature-extraction", model="Ramos-Ramos/dino-resnet-50") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModel
processor = AutoImageProcessor.from_pretrained("Ramos-Ramos/dino-resnet-50")
model = AutoModel.from_pretrained("Ramos-Ramos/dino-resnet-50", device_map="auto")