Run this model with HF Jobs
Run openmmlab-community/mm_grounding_dino_large_all on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/openmmlab-community/mm_grounding_dino_large_all. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/openmmlab-community/mm_grounding_dino_large_all on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use openmmlab-community/mm_grounding_dino_large_all with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openmmlab-community/mm_grounding_dino_large_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_large_all")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForZeroShotObjectDetection processor = AutoProcessor.from_pretrained("openmmlab-community/mm_grounding_dino_large_all") model = AutoModelForZeroShotObjectDetection.from_pretrained("openmmlab-community/mm_grounding_dino_large_all", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from openmmlab-community/mm_grounding_dino_large_all: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/openmmlab-community/mm_grounding_dino_large_all/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://openmmlab-community/mm_grounding_dino_large_all/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/openmmlab-community/mm_grounding_dino_large_all/resolve/main/preprocessor_config.json
511 Bytes
| { | |
| "do_convert_annotations": true, | |
| "do_normalize": true, | |
| "do_pad": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "format": "coco_detection", | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_processor_type": "GroundingDinoImageProcessor", | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "pad_size": null, | |
| "processor_class": "GroundingDinoProcessor", | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 1333, | |
| "shortest_edge": 800 | |
| } | |
| } | |