Model Card for Grounding DINO SwinT (IB-Robot)
Grounding DINO with Swin-Tiny backbone and OGC (Open-vocabulary Grounding with Conditional) checkpoint, compiled as 12 Ascend 310P OM modules for text-conditioned zero-shot object detection. Packaged for the IB-Robot framework.
Repository Structure
inference_manifest.jsonβ deployment routing (schema v3, 12-role pipeline with 24 device links)assets/adapter.jsonβ deployment adapter configassets/encoder_tgt.npyβ pre-computed encoder target queryassets/bert-base-uncased/vocab.txtβ BERT vocabulary for text encoderartifacts/ascend_310p/β 12 OM modules:gdino_text.omβ BERT text encodergdino_vision.omβ SwinT vision backbonegdino_vision_flatten.omβ multi-scale feature flattengdino_encoder_layer0..5.omβ 6 cross-modal encoder layersgdino_proposal_cube.omβ reference point proposalgdino_decoder_cube.omβ transformer decodergdino_head_origin.omβ classification + bbox regression head
Deployment
| Target | Backend | Runtime | Hardware |
|---|---|---|---|
ascend_310p |
ascend | ACL | Ascend 310P1 |
Execution pipeline (12 stages with device-pointer links between stages):
text + vision -> flatten -> encoder_0 -> encoder_1 -> ... -> encoder_5 -> proposal + decoder -> head
Inputs:
imagefloat32 [1,3,720,1280] NCHWinput_idsint64 [1,8] (BERT tokenized text prompt)token_type_ids,position_ids,text_self_attention_masksint64 [1,8] / [1,8,8]text_token_maskint64 [1,8]encoder_tgtfloat32 [1,900,256] (pre-computed)
Outputs:
pred_logitsfloat32 [1,900,256] (class confidence logits)pred_boxesfloat32 [1,900,4] (cxcywh format, normalized)
Source Model
This bundle's OM artifacts were compiled from the upstream Grounding DINO checkpoint:
- Source checkpoint: groundingdino_swint_ogc.pth
- Source repository: github.com/IDEA-Research/GroundingDINO (v0.1.0-alpha)
- Text encoder: BERT base uncased
The OM artifacts were compiled from the torch checkpoint via ATC for Ascend 310P1 (fp16). See scripts/download_perception_models.sh for the download procedure.
Citation
@inproceedings{grounding_dino,
title = {Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detection},
author = {Liu, Shilong and Zeng, Zhaoyang and Ren, Tianhe and Li, Feng and Zhang, Hongyang and Yang, Jian and Li, Chunyuan and Yang, Jianwei and Su, Hang and Zhu, Jun and Zhang, Lei},
booktitle = {ECCV},
year = {2024}
}
@software{ib_robot,
title = {IB-Robot: Intelligence Boom Robot},
url = {https://gitcode.com/openeuler/IB_Robot},
license = {Apache-2.0}
}