← 开源
FoundationVision

Groma

[ECCV2024] Grounded Multimodal Large Language Model with Localized Visual Tokenization

ModelsFoundation modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
587
Star
44
Fork
+0
本周
3
贡献者
创建于 2024-04-21 · 更新于 2026-10-08 · 今日第 16498 名
主要开发者
machuofanvcadillogenjoyyi00

FoundationVision/Groma 排名第 16,498,有 587 个星标。

同类别比较

FoundationVision/Groma 排名第 16,498,此处有 8 个同类条目;ByteDance-Seed/TraceAnything 排名第 16,497。

同类别比较
名称排名指标
wzzheng/OccWorld16,447
语言:
Python
星标数:
591
分叉数:
44
简介:
[ECCV 2024] 3D World Model for Autonomous Driving
microsoft/CSWin-Transformer16,476
语言:
Python
星标数:
589
分叉数:
81
简介:
CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped, CVPR 2022
Shawn-IEITSystems/Yuan-1.016,485
语言:
Python
星标数:
588
分叉数:
109
简介:
Yuan 1.0 Large pretrained LM
ByteDance-Seed/TraceAnything16,497
语言:
Python
星标数:
587
分叉数:
25
简介:
[ICLR 2026] Trace Anything: Representing Any Video in 4D via Trajectory Fields
pesser/pytorch_diffusion16,511
语言:
Python
星标数:
587
分叉数:
51
简介:
PyTorch reimplementation of Diffusion Models
alex4727/MotionStream16,531
星标数:
586
分叉数:
21
简介:
MotionStream: Real-Time Video Generation with Interactive Motion Controls
wyf0912/SinSR16,558
语言:
Python
星标数:
585
分叉数:
36
简介:
[CVPR 2024] SinSR: Diffusion-Based Image Super-Resolution in a Single Step
FabianFuchsML/se3-transformer-public16,560
语言:
Python
星标数:
584
分叉数:
78
简介:
code for the SE3 Transformers paper: https://arxiv.org/abs/2006.10503
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Foundation models
关键词Multimodal, Visual understanding
星标数587
分叉数44
贡献者3
创建日期2024-04-21
更新日期2026-10-08
1 天星标数0
7 天星标数0
排名16,498
上次排名16,288
排名变化-210
7 天星标排名15,562
上次 7 天星标排名15,575
7 天星标排名变化13
总星标排名17,053
上次总星标排名17,033
总星标排名变化-20
README 摘录

Groma: Grounded Multimodal Assistant **Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models** **Chuofan Ma, Yi Jiang, Jiannan Wu, Zehuan Yuan, Xiaojuan Qi** Groma is an MLLM with exceptional region understanding and visual grounding capabilities. It can take user-defined region inputs (boxes) as well as generate long-form responses that are grounded to visual context. Groma presents a novel paradigm of grounded MLLMs. , Kosmos-2, Shikra); (b) External modules for localization (e. , Lisa); and (c) Visual tokenier for

localization (Groma) . Contents Install Model Data Training Inference Evaluation Performance State-of-the-art performance on referring expression comprehension (REC) benchmarks among multimodal large language models. Installation Clone the repository Create the conda environment and install dependencies Install falsh-attention for training Model Weights To play with Groma, please download the model weights from huggingface. We additionally provide pretrained checkpoints from intermediate training stages. You can start from any point to customize training. 5, Groma-det-pretrain | | Instruction finetuning | Groma

-7b-pretrain | Prepare Data We provide instructions to download datasets used at different training stages of Groma, including Groma Instruct, a 30k viusally grounded conversation dataset constructed with GPT-4V. You don't have to download all of them unless you want to train Groma from scratch. Training For detection pretraining, please run For alignment pretraining, please run For instruction finetuning, please run Inference To test on single image, you can run Evaluation For evaluation, please refer to EVAL. Citation If

you find this repo useful for your research, feel free to give us a star ⭐ or cite our paper: Acknowledgement Groma is built upon the awesome works LLaVA and GPT4ROI. LICENSE This project is licensed under the Apache License 2.

常见问题

记录了多少星标和分叉?

FoundationVision/Groma 有 587 个星标和 44 个分叉。

仓库排名是多少?

FoundationVision/Groma 排名第 16,498。

记录的语言和类别是什么?

FoundationVision/Groma 有 587 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

FoundationVision/Groma 与 ByteDance-Seed/TraceAnything 比较,后者排名第 16,497,有 587 个星标。

README

Groma: Grounded Multimodal Assistant

Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models
Chuofan Ma, Yi Jiang, Jiannan Wu, Zehuan Yuan, Xiaojuan Qi

Groma is an MLLM with exceptional region understanding and visual grounding capabilities. It can take user-defined region inputs (boxes) as well as generate long-form responses that are grounded to visual context.

Groma presents a novel paradigm of grounded MLLMs. (a) LLM for localization (e.g., Kosmos-2, Shikra); (b) External modules for localization (e.g., Lisa); and (c) Visual tokenier for localization (Groma).

Contents

Performance

State-of-the-art performance on referring expression comprehension (REC) benchmarks among multimodal large language models.

Method

RefCOCO

RefCOCO+

RefCOCOg

Avergae

val

testA

testB

val

testA

testB

val

test

Shikra

87.01

90.61

80.24

81.60

87.36

72.12

82.27

82.19

82.93

Ferret

87.49

91.35

82.45

80.78

87.38

73.14

83.93

84.76

83.91

MiniGPT-v2

88.69

91.65

85.33

79.97

85.12

74.45

84.44

84.66

84.29

Qwen-VL

89.36

92.26

85.34

83.12

88.25

77.21

85.58

85.48

85.83

Groma

89.53

92.09

86.26

83.90

88.91

78.05

86.37

87.01

86.52

Installation

Clone the repository

git clone https://github.com/FoundationVision/Groma.git
cd Groma

Create the conda environment and install dependencies

conda create -n groma python=3.9 -y
conda activate groma
conda install pytorch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 pytorch-cuda=11.8 -c pytorch -c nvidia
pip install --upgrade pip  # enable PEP 660 support
pip install -e .

cd mmcv
MMCV_WITH_OPS=1 pip install -e .
cd ..

Install falsh-attention for training

pip install ninja
pip install flash-attn --no-build-isolation

Model Weights

To play with Groma, please download the model weights from huggingface.

We additionally provide pretrained checkpoints from intermediate training stages. You can start from any point to customize training.

Training stage Required checkpoints
Detection pretraining DINOv2-L
Alignment pretraining Vicuna-7b-v1.5, Groma-det-pretrain
Instruction finetuning Groma-7b-pretrain

Prepare Data

We provide instructions to download datasets used at different training stages of Groma, including Groma Instruct, a 30k viusally grounded conversation dataset constructed with GPT-4V. You don't have to download all of them unless you want to train Groma from scratch. Please follow instructions in DATA.md to prepare datasets.

Training stage

Data types

Datasets

Detection pretraining

Detection

COCO, Objects365, OpenImages, V3Det, SA1B

Alignment pretraining

Image caption

ShareGPT-4V-PT

Grounded caption

Flickr30k Entities

Region caption

Visual Genome, RefCOCOg

REC

COCO, RefCOCO/g/+, Grit-20m

Instruction finetuning

Grounded caption

Flickr30k Entities

Region caption

Visual Genome, RefCOCOg

REC

COCO, RefCOCO/g/+

Instruction following

Groma Instruct, LLaVA Instruct, ShareGPT-4V

Training

For detection pretraining, please run

bash scripts/det_pretrain.sh {path_to_dinov2_ckpt} {output_dir}

For alignment pretraining, please run

bash scripts/vl_pretrain.sh {path_to_vicuna_ckpt} {path_to_groma_det_pretrain_ckpt} {output_dir}

For instruction finetuning, please run

bash scripts/vl_finetune.sh {path_to_groma_7b_pretrain_ckpt} {output_dir}

Inference

To test on single image, you can run

python -m groma.eval.run_groma \
    --model-name {path_to_groma_7b_finetune} \
    --image-file {path_to_img} \
    --query {user_query} \
    --quant_type 'none' # support ['none', 'fp16', '8bit', '4bit'] for inference

Evaluation

For evaluation, please refer to EVAL.md for more details.

Citation

If you find this repo useful for your research, feel free to give us a star ⭐ or cite our paper:

@article{ma2024groma,
  title={Groma: Localized Visual Tokenization for Grounding Multimodal Large Language Models},
  author={Ma, Chuofan and Jiang, Yi and Wu, Jiannan and Yuan, Zehuan and Qi, Xiaojuan},
  journal={arXiv preprint arXiv:2404.13013},
  year={2024}
}

Acknowledgement

Groma is built upon the awesome works LLaVA and GPT4ROI.

LICENSE

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

排名相邻
同类项目