Instructions to use kerasformers/grounding_dino_tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- KerasFormers
How to use kerasformers/grounding_dino_tiny with KerasFormers:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Keras
How to use kerasformers/grounding_dino_tiny with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://kerasformers/grounding_dino_tiny") - Notebooks
- Google Colab
- Kaggle
grounding_dino_tiny
Grounding DINO performs open-set, text-grounded object detection: a Swin backbone and a BERT text encoder feed a cross-modality transformer that grounds free-form text prompts to boxes.
Pure-Keras 3 model in kerasformers. The repo is self-describing: kf_config.json holds the architecture and tokenizer.json the text tokenizer, so it loads by its Hub repo id (weights download automatically):
from kerasformers.models.grounding_dino import (
GroundingDinoDetect,
GroundingDinoProcessor,
)
model = GroundingDinoDetect.from_weights("kerasformers/grounding_dino_tiny")
processor = GroundingDinoProcessor.from_weights("kerasformers/grounding_dino_tiny")
inputs = processor(images=image, text="a cat. a remote control.")
outputs = model(inputs) # logits + pred_boxes
- Downloads last month
- 15
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support