Duplicated from google/owlv2-base-patch16-ensemble
How to use upfeatmediainc/owlv2-base-patch16-ensemble with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="upfeatmediainc/owlv2-base-patch16-ensemble")
# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("upfeatmediainc/owlv2-base-patch16-ensemble") model = AutoModelForZeroShotObjectDetection.from_pretrained("upfeatmediainc/owlv2-base-patch16-ensemble")