How to use openmmlab-community/mm_grounding_dino_base_all with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-object-detection", model="openmmlab-community/mm_grounding_dino_base_all")
# Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("openmmlab-community/mm_grounding_dino_base_all") model = AutoModelForZeroShotObjectDetection.from_pretrained("openmmlab-community/mm_grounding_dino_base_all")