MCPcopy Index your code
hub / github.com/ant-research/DreamLIP

github.com/ant-research/DreamLIP @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
504 symbols 1,515 edges 51 files 81 documented · 16%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DreamLIP: Language-Image Pre-training with Long Captions

DreamLIP: Language-Image Pre-training with Long Captions

Kecheng Zheng, Yifei Zhang, Wei Wu, Fan Lu, Shuailei Ma, Xin Jin, Wei Chen, Yujun Shen

Project Page | Paper

📰 News

  • [2024/11/26] Long captions (LLAVA1.5, InstructBLIP and shareGPT4V) of COYO24M/LAION49M are released in huggingface~
  • [2024/08/26] Long captions (LLAVA1.5, InstructBLIP and shareGPT4V) of CC3M/CC12M/YFCC15M are released in huggingface~
  • [2024/07/16] Upload the pretrained weight of VIT-B/16 pretrained in CC3M, CC12M, YFCC15M, and merged-30M (long captions of ShareGPT4V)!
  • [2024/07/08] DreamLIP is accepted by ECCV 2024!

💡 Highlights

  • 🔥 Exploring how language-image pre-training could benefit from long captions.
  • 🔥 Strong improvement on semantic segmentation, image-text retrieval, semantic segmentation, and image understanding in MLLM.

  • 🔥 DreamLIP trained with 30M image-text pairs achieves on par or even better performance than CLIP trained with 400M pairs. timeline.jpg

🎨 In-Progress

  • [x] Release long captions of CC3M, CC12M, YFCC15M, COYO24M and LAION49M.
  • [ ] Release training code.

🏝️ Overview of supported long captions:

Long Captions of Supported Datasets (5)

  • [x]
  • [x]
  • [x]
  • [x]
  • [x]

Long Captions of MLLMs (3)

  • [x]
  • [x]
  • [x]

Generated Long Captions

Dataset Huggingface Dataset
CC3M Raw/Long/Short Caption
CC12M Raw/Long/Short Caption
YFCC15M Raw/Long/Short Caption
Laion49M Long Caption
COYO24M Long Caption

Pretrained checkpoints

Dataset Model ShareGPT4V InstructBLIP + LLAVA1.5 + ShareGPT4V
CC3M ViT-B/16 Link TODO
CC12M ViT-B/16 Link TODO
YFCC15M ViT-B/16 Link TODO
CC30M ViT-B/16 Link TODO

📣 Instructions

Environment installation

pip install -r requirments.txt

Evaluate zero shot classification

bash eval_zs.sh

License

The project is under a standard Creative Common CC-BY-4.0 License.

📖 Citation

We open source this library to the community to facilitate the research. If you do like our work and use the codebase for your projects, please cite our work as follows.

@inproceedings{DreamLIP,
  title={DreamLIP: Language-Image Pre-training with Long Captions},
  author={Zheng, Kecheng and Zhang, Yifei and Wu, Wei and Lu, Fan and Ma, Shuailei and Jin, Xin and Chen, Wei and Shen, Yujun},
  booktitle={ECCV},
  year={2024}
}

Acknowledgements

This project is based on open_clip, and thanks for the nice work! We also thank InstructBLIP, ShareGPT4V and LLAVA for the pretrained models and codes.

Core symbols most depended-on inside this repo

_pcfg
called by 103
open_clip/pretrained.py
_n2p
called by 47
open_clip/big_vision.py
is_master
called by 12
training/distributed.py
update
called by 11
training/train.py
_slpcfg
called by 9
open_clip/pretrained.py
_apcfg
called by 7
open_clip/pretrained.py
split_caption
called by 6
training/data.py
split_caption
called by 6
training/data.py

Shape

Function 225
Method 207
Class 72

Languages

Python100%

Modules by API surface

training/data.py62 symbols
open_clip/transformer.py52 symbols
open_clip/loss.py41 symbols
open_clip/model.py36 symbols
training/random_aug.py34 symbols
open_clip/tokenizer.py31 symbols
open_clip/transform.py30 symbols
open_clip/hf_model.py20 symbols
open_clip/pretrained.py14 symbols
open_clip/modified_resnet.py14 symbols
open_clip/factory.py14 symbols
open_clip/coca_model.py13 symbols

For agents

$ claude mcp add DreamLIP \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact