ランキングに戻る

dandelin/ViLT

Python

Code for the ICML 2021 (long talk) paper: "ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision"

vision-and-language
スター成長
スター
1.5k
フォーク
230
週間成長
Issue
60
5001k1.5k
2021年5月2023年1月2024年10月2026年7月
成果物PyPIpip install vilt
README

ViLT

Code for the ICML 2021 (long talk) paper: "ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision"


The main figure

Install

pip install -r requirements.txt
pip install -e .

Download Pretrained Weights

We provide five pretrained weights

  1. ViLT-B/32 Pretrained with MLM+ITM for 200k steps on GCC+SBU+COCO+VG (ViLT-B/32 200k) link
  2. ViLT-B/32 200k finetuned on VQAv2 link
  3. ViLT-B/32 200k finetuned on NLVR2 link
  4. ViLT-B/32 200k finetuned on COCO IR/TR link
  5. ViLT-B/32 200k finetuned on F30K IR/TR link

Out-of-the-box MLM + Visualization Demo

MLM + Visualization

pip install gradio==1.6.4
python demo.py with num_gpus=<0 if you have no gpus else 1> load_path="<YOUR_WEIGHT_ROOT>/vilt_200k_mlm_itm.ckpt"

ex)
python demo.py with num_gpus=0 load_path="weights/vilt_200k_mlm_itm.ckpt"

Out-of-the-box VQA Demo

VQA

pip install gradio==1.6.4
python demo_vqa.py with num_gpus=<0 if you have no gpus else 1> load_path="<YOUR_WEIGHT_ROOT>/vilt_vqa.ckpt" test_only=True

ex)
python demo_vqa.py with num_gpus=0 load_path="weights/vilt_vqa.ckpt" test_only=True

Dataset Preparation

See DATA.md

Train New Models

See TRAIN.md

Evaluation

See EVAL.md

Citation

If you use any part of this code and pretrained weights for your own purpose, please cite our paper.

@InProceedings{pmlr-v139-kim21k,
  title = 	 {ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision},
  author =       {Kim, Wonjae and Son, Bokyung and Kim, Ildoo},
  booktitle = 	 {Proceedings of the 38th International Conference on Machine Learning},
  pages = 	 {5583--5594},
  year = 	 {2021},
  editor = 	 {Meila, Marina and Zhang, Tong},
  volume = 	 {139},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {18--24 Jul},
  publisher =    {PMLR},
  pdf = 	 {http://proceedings.mlr.press/v139/kim21k/kim21k.pdf},
  url = 	 {http://proceedings.mlr.press/v139/kim21k.html},
  abstract = 	 {Vision-and-Language Pre-training (VLP) has improved performance on various joint vision-and-language downstream tasks. Current approaches to VLP heavily rely on image feature extraction processes, most of which involve region supervision (e.g., object detection) and the convolutional architecture (e.g., ResNet). Although disregarded in the literature, we find it problematic in terms of both (1) efficiency/speed, that simply extracting input features requires much more computation than the multimodal interaction steps; and (2) expressive power, as it is upper bounded to the expressive power of the visual embedder and its predefined visual vocabulary. In this paper, we present a minimal VLP model, Vision-and-Language Transformer (ViLT), monolithic in the sense that the processing of visual inputs is drastically simplified to just the same convolution-free manner that we process textual inputs. We show that ViLT is up to tens of times faster than previous VLP models, yet with competitive or better downstream task performance. Our code and pre-trained weights are available at https://github.com/dandelin/vilt.}
}

Contact for Issues

関連リポジトリ
aishwaryanr/awesome-generative-ai-guide

A one stop repository for generative AI research updates, interview resources, notebooks and much more!

HTMLMIT Licenseawesomeawesome-list
linkedin.com/in/areganti/
28.4k5.8k
salesforce/LAVIS

LAVIS - A One-stop Library for Language-Vision Intelligence

Jupyter NotebookBSD 3-Clause "New" or "Revised" Licensedeep-learningdeep-learning-library
11.3k1.1k
roboflow/maestro

streamline the fine-tuning process for multimodal models: PaliGemma 2, Florence-2, and Qwen2.5-VL

PythonPyPIApache License 2.0captioningfine-tuning
maestro.roboflow.com
2.7k222
om-ai-lab/OmAgent

[EMNLP-2024] Build multimodal language agents for fast prototype and production

PythonPyPIApache License 2.0large-language-modelsmultimodal-agent
om-agent.com
2.7k293
salesforce/ALBEF

Code for ALBEF: a new vision-language pre-training method

PythonPyPIBSD 3-Clause "New" or "Revised" Licensevision-and-languagerepresentation-learning
1.8k220
open-mmlab/Multimodal-GPT

Multimodal-GPT

PythonPyPIApache License 2.0flamingogpt
1.5k129
llm-jp/awesome-japanese-llm

日本語LLMまとめ - Overview of Japanese LLMs

TypeScriptnpmApache License 2.0language-modellanguage-models
llm-jp.github.io/awesome-japanese-llm
1.4k45
om-ai-lab/OmDet

Real-time and accurate open-vocabulary end-to-end object detection

PythonPyPIApache License 2.0object-detectionopen-vocabulary
1.4k118
NVlabs/prismer

The implementation of "Prismer: A Vision-Language Model with Multi-Task Experts".

PythonPyPIOtherimage-captioninglanguage-model
shikun.io/projects/prismer
1.3k74
yuewang-cuhk/awesome-vision-language-pretraining-papers

Recent Advances in Vision and Language PreTrained Models (VL-PTMs)

vision-and-languagepretraining
1.2k104
rhymes-ai/Aria

Codebase for Aria - an Open Multimodal Native MoE

Jupyter NotebookApache License 2.0mixture-of-expertsmultimodal
1.1k87
OFA-Sys/ONE-PEACE

A general representation model across vision, audio, language modalities. Paper: ONE-PEACE: Exploring One General Representation Model Toward Unlimited Modalities

PythonPyPIApache License 2.0foundation-modelsmultimodal
1.1k71