百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
T

TransVG

> 编程语言
开源

TransVG 这是 TransVG 的官方实现: 使用 Transformer 进行端到端视觉定位。这篇论文已被 ICCV 采纳…

198 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

TransVG 这是 TransVG 的官方实现: 使用 Transformer 进行端到端视觉定位。这篇论文已被 ICCV 采纳…

TransVG

This is the official implementation of TransVG: End-to-End Visual Grounding with Transformers. This paper has been accepted by ICCV 2021.

@article{deng2021transvg,
  title={TransVG: End-to-End Visual Grounding with Transformers},
  author={Deng, Jiajun and Yang, Zhengyuan and Chen, Tianlang and Zhou, Wengang and Li, Houqiang},
  journal={arXiv preprint arXiv:2104.08541},
  year={2021}

}

Installation

  1. Clone this repository.

    bash
    git clone https://github.com/djiajunustc/TransVG
  2. Prepare for the running environment.

    You can either use the docker image we provide, or follow the installation steps in ReSC.

    bash
    docker pull djiajun1206/vg:pytorch1.5

Getting Started

Please refer to GETTING_STARGTED.md to learn how to prepare the datasets and pretrained checkpoints.

Model Zoo

The models with ResNet-50 backbone and ResNet-101 backbone are available in [Gdrive]

         &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp RefCOCO 
         &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp RefCOCO+
         &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp RefCOCOg
         ReferItGame
    





         
        val
        testA
        testB
        val
        testA
        testB
        g-val
        u-val
        u-test
        val
        test
    





         R-50 
        80.5
        83.2
        75.2
        66.4
        70.5
        57.7
        66.4
        67.9
        67.4
        71.6
        69.3
    





         R-101 
        80.8
        83.4
        76.9
         68.0 
         72.5
         59.2
         68.0 
        68.7
        68.0
         - 
         - 

Training and Evaluation

  1. Training

    CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --use_env train.py --batch_size 8 --lr_bert 0.00001 --aug_crop --aug_scale --aug_translate --backbone resnet50 --detr_model ./checkpoints/detr-r50-referit.pth --bert_enc_num 12 --detr_enc_num 6 --dataset referit --max_query_len 20 --output_dir outputs/referit_r50 --epochs 90 --lr_drop 60

    We recommend to set --max_query_len 40 for RefCOCOg, and --max_query_len 20 for other datasets.

    We recommend to set --epochs 180 (--lr_drop 120 acoordingly) for RefCOCO+, and --epochs 90 (--lr_drop 60 acoordingly) for other datasets.

  2. Evaluation

    CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 python -m torch.distributed.launch --nproc_per_node=8 --use_env eval.py --batch_size 32 --num_workers 4 --bert_enc_num 12 --detr_enc_num 6 --backbone resnet50 --dataset referit --max_query_len 20 --eval_set test --eval_model ./outputs/referit_r50/best_checkpoint.pth --output_dir ./outputs/referit_r50

Acknowledge

This codebase is partially based on ReSC and DETR.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Python

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言