add model 0c17cce
Félix Marty commited on
How to use fxmarty/owlvit-tiny-non-contiguous-weight with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-object-detection", model="fxmarty/owlvit-tiny-non-contiguous-weight") # Load model directly
from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection
processor = AutoProcessor.from_pretrained("fxmarty/owlvit-tiny-non-contiguous-weight")
model = AutoModelForZeroShotObjectDetection.from_pretrained("fxmarty/owlvit-tiny-non-contiguous-weight")