← 开源
zengyan-97

X-VLM

X-VLM: Multi-Grained Vision Language Pre-Training (ICML 2022)

ModelsVision modelsPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
507
Star
52
Fork
+1
本周
1
贡献者
创建于 2021-11-15 · 更新于 2026-10-13 · 今日第 18167 名
主要开发者
zengyan-97

zengyan-97/X-VLM 排名第 18,167,有 507 个星标。

同类别比较

zengyan-97/X-VLM 排名第 18,167,此处有 8 个同类条目;thu-coai/CharacterGLM-6B 排名第 18,164。

同类别比较
名称排名指标
dccuchile/beto18,155
星标数:
507
分叉数:
62
简介:
BETO - Spanish version of the BERT model
nmwsharp/diffusion-net18,160
语言:
Python
星标数:
507
分叉数:
70
简介:
Pytorch implementation of DiffusionNet for fast and robust learning on 3D surfaces like meshes or point clouds.
showlab/DragAnything18,163
语言:
Python
星标数:
507
分叉数:
18
简介:
[ECCV 2024] DragAnything: Motion Control for Anything using Entity Representation
thu-coai/CharacterGLM-6B18,164
语言:
Python
星标数:
507
分叉数:
35
简介:
[EMNLP'24] CharacterGLM: Customizing Chinese Conversational AI Characters with Large Language Models
Illumina/SpliceAI18,172
语言:
Python
星标数:
506
分叉数:
180
简介:
A deep learning-based tool to identify splice variants
YingqingHe/LVDM18,176
语言:
Python
星标数:
506
分叉数:
23
简介:
LVDM: Latent Video Diffusion Models for High-Fidelity Long Video Generation
jefflai108/Contrastive-Predictive-Coding-PyTorch18,186
语言:
Python
星标数:
506
分叉数:
96
简介:
Contrastive Predictive Coding for Automatic Speaker Verification
LAION-AI/dalle2-laion18,199
语言:
Python
星标数:
505
分叉数:
65
简介:
Pretrained Dalle2 from laion
关键参数与规格
关键参数与规格
参数值
语言Python
类别Models
子类别Vision models
关键词Multimodal
星标数507
分叉数52
贡献者1
创建日期2021-11-15
更新日期2026-10-13
1 天星标数0
7 天星标数1
排名18,167
上次排名17,930
排名变化-237
7 天星标排名11,590
上次 7 天星标排名11,639
7 天星标排名变化49
总星标排名19,166
上次总星标排名19,145
总星标排名变化-21
国家China
README 摘录

X-VLM: learning multi-grained vision language alignments **Multi-Grained Vision Language Pre-Training: Aligning Texts with Visual Concepts. ** Jan 2022: release official PyTorch implementation and X-VLM-base checkpoints Dec 2021: X-VLM-base (4M) achieves new SoTA Nov 2021: release preprint in arXiv Hiring We are looking for interns at ByteDance AI-LAB (in Beijing / Shanghai)! If you are interested in working with us on vision language models, please send your resume to zhangxinsong. Features Support several backbones

Support apex O1 / O2 for pre-training Read from and write to HDFS Distributed training across nodes for both pre-training and fine-tuning Please read the code for more details. Requirements Install python3 environment Download raw images from corresponding websites Download the json files we provided, which contains image read paths and captions and/or bbox annotations If running pre-training scripts: install Apex download pre-trained models for parameter initialization Organize these files like this (% is for pre

-training only): Pretrain For distributed training across nodes, see run. Data We are organizing the data and the scripts. All these will be released in Vision-Language-Data in March. Please feel free to prepare your own datasets by referring the code in dataset/pretrain_dataset. Checkpoints X-VLM-base (4M) X-VLM-base 14M, WIP X-VLM-large 14M, WIP Finetune See run. py for fine-tuning on other tasks (Retrieval, NLVR2, RefCOCO). We set some python assertions to

help you run the code correctly. The fine-tuning scripts are based on ALBEF. We thank the author for opening source their code. Data download json files Checkpoints and Logs retrieval-mscoco retrieval-flickr vqa nlvr2 refcoco refcoco-bbox Citation If you use this code, please considering citing: Contact For issues or help using this code, please submit a GitHub issue.

常见问题

记录了多少星标和分叉?

zengyan-97/X-VLM 有 507 个星标和 52 个分叉。

仓库排名是多少?

zengyan-97/X-VLM 排名第 18,167。

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

zengyan-97/X-VLM 有 507 个星标,语言为 Python,类别为 Models。

哪个仓库排名最接近?

zengyan-97/X-VLM 与 thu-coai/CharacterGLM-6B 比较,后者排名第 18,164,有 507 个星标。

README

X-VLM: learning multi-grained vision language alignments

Multi-Grained Vision Language Pre-Training: Aligning Texts with Visual Concepts. Yan Zeng, Xinsong Zhang, Hang Li. arXiv 2021.

  • Jan 2022: release official PyTorch implementation and X-VLM-base checkpoints
  • Dec 2021: X-VLM-base (4M) achieves new SoTA
  • Nov 2021: release preprint in arXiv

Hiring

We are looking for interns at ByteDance AI-LAB (in Beijing / Shanghai)! If you are interested in working with us on vision language models, please send your resume to zhangxinsong.0320@bytedance.com.

Features

  • Support several backbones
    • vision encoder: deit / clip-vit / swin-transformer
    • text encoder: bert / roberta
  • Support apex O1 / O2 for pre-training
  • Read from and write to HDFS
  • Distributed training across nodes for both pre-training and fine-tuning

Please read the code for more details.

Requirements

  • Install python3 environment
pip3 install -r requirements.txt
  • Download raw images from corresponding websites
  • Download the json files we provided, which contains image read paths and captions and/or bbox annotations
  • If running pre-training scripts:
  • Organize these files like this (% is for pre-training only):
X-VLM/
    data/
        finetune/
            refcoco+/*.json
            *.json
        
        %pretrain_4m/*.json
        %swin_base_patch4_window7_224_22k.pth
        %bert-base-uncased/
            config.json
            pytorch_model.bin
            tokenizer_config.json
            tokenizer.json
            vocab.txt

    images/
        coco/
            train2014/*.jpg
            val2014/*.jpg
            test2015/*.jpg
        
        visualgenome/
            image/*.jpg
        
        nlvr2/
            images/
                train/0-99/*.png
            dev/*.png
            test1/*.png
        
        %sbu/*.jpg
        %cc-3m/*.jpg

Pretrain

python3 run.py --task "pretrain_4m_base" --dist "1" --output_dir "output/pretrain_4m_base"

For distributed training across nodes, see run.py for more details.

Data

We are organizing the data and the scripts. All these will be released in Vision-Language-Data in March. Please feel free to prepare your own datasets by referring the code in dataset/pretrain_dataset.py.

Checkpoints

X-VLM-base (4M)
X-VLM-base 14M, WIP
X-VLM-large 14M, WIP

Finetune

python3 run.py --task "vqa" --dist "1" --output_dir "output/vqa" --checkpoint "4m_base_model_state_step_199999.th"
python3 run.py --task "vqa" --dist "all" --output_dir "output/vqa" --output_hdfs "hdfs://xxx/vqa_tmp" --checkpoint "4m_base_model_state_step_199999.th"
python3 run.py --task "vqa" --dist "1" --evaluate --output_dir "output/vqa_eval" --checkpoint "4m_base_finetune/vqa/model_state_epoch_9.th" 

See run.py for fine-tuning on other tasks (Retrieval, NLVR2, RefCOCO). We set some python assertions to help you run the code correctly. The fine-tuning scripts are based on ALBEF. We thank the author for opening source their code.

Data

download json files

Checkpoints and Logs

retrieval-mscoco
retrieval-flickr
vqa
nlvr2
refcoco
refcoco-bbox

Citation

If you use this code, please considering citing:

@article{xvlm,
  title={Multi-Grained Vision Language Pre-Training: Aligning Texts with Visual Concepts},
  author={Zeng, Yan and Zhang, Xinsong and Li, Hang},
  journal={arXiv preprint arXiv:2111.08276},
  year={2021}
}

Contact

For issues or help using this code, please submit a GitHub issue.

排名相邻
同类项目