BAAI/EVA

Model

30

stars

15

commits

10

repos using this model

3

linked in READMEs

Dec 7, 2022

updated

README

EVA: An Open Billion-Scale Vision Foundation Model

EVA: Exploring the Limits of Masked Visual Representation Learning at Scale

Yuxin Fang2,1, Wen Wang3,1, Binhui Xie4,1, Quan Sun1, Ledell Wu1, Xinggang Wang2, Tiejun Huang1, Xinlong Wang1, Yue Cao1

1BAAI, 2HUST, 3ZJU, 4BIT

We launch EVA, a vision-centric foundation model to Explore the limits of Visual representation at scAle using only publicly accessible data and academic resources. EVA is a vanilla ViT pre-trained to reconstruct the masked out image-text aligned vision features (i.e., CLIP features) conditioned on visible image patches. Via this pretext task, we can efficiently scale up EVA to one billion parameters, and sets new records on a broad range of representative vision downstream tasks.

EVA is the first open-sourced billion-scale vision foundation model that achieves state-of-the-art performance on a broad range of downstream tasks.

Table of Contents

Image Classification

We provide all pre-trained & fine-tuned EVAs for the community. The following table summarizes the basic statistics of MIM pre-trained EVA and image classification EVA.

model name#param.pre-training epochs on merged-30Mintermeidate fine-tuning epochs on IN-21Kfine-tuning epochs on IN-1KIN-1K top-1 acc.weight
eva_psz141.0B150---🤗 HF link (2GB)
eva_psz14to161.0B150---🤗 HF link (2GB)
eva_21k_224px_psz141.0B15060--🤗 HF link (2GB)
eva_21k_1k_336px_psz14_ema1.0B150601089.6🤗 HF link (4GB)
eva_21k_1k_560px_psz14_ema1.0B150601589.7🤗 HF link (4GB)
  • eva_psz14to16 model interpolates the kernel size of patch_embed from 14x14 to 16x16. This is useful for object detection, instance segmentation & semantic segmentation, etc. See interpolate_patch_14to16.py for implementation details.
  • For MIM pre-trained EVA and EVA-CLIP, we use deepspeed fp16 format. IN-1K fine-tuned EVA weights are larger (4GB v.s. 2GB) because ema updates models with fp32 format. The weights of other downstream tasks are also with fp32 format.

Summary of EVA's image classification performance

modelIN-1KIN-V2IN-ReaLIN-Adv.IN-Ren.IN-Ske.ObjectNet
EVA89.681.690.886.288.367.760.9

Video Classification

datasetmodel nameinit. weightacc@1configweightlogs
Kinetics722eva_video_k722eva_psz14-config🤗 HF link (4.8GB)ft_k722
Kinetics400eva_video_k400eva_video_k72289.7config🤗 HF link (4.8GB)ft_k400
Kinetics600eva_video_k600eva_video_k72289.8config🤗 HF link (4.8GB)ft_k600
Kinetics700eva_video_k700eva_video_k72282.9config🤗 HF link (4.8GB)ft_k700

Object Detection & Instance Segmentation

model name#param.pre-training interations on Objects365weight
eva_o3651.1B380k🤗 HF link (4GB)

COCO 2017 (single-scale evaluation on val set)

init. model weightbatch sizeiterAP boxAP maskconfigmodel weight
eva_o3656435k64.253.9config🤗 HF link (4GB)
eva_o3656445k63.955.0config🤗 HF link (4GB)

LVIS v1.0 (single-scale evaluation on val set)

init. model weightbatch sizeiterAP boxAP maskconfigmodel weight
eva_o3656475k62.255.0config🤗 HF link (4GB)

Semantic Segmentation

COCO-Stuff-164K

init. model weightbatch sizeitercrop sizemIoU (ss)configseg model weightlogs
eva_psz14to163260k89653.4config🤗 HF linktraining | evaluation

ADE20K

init. model weightbatch sizeitercrop sizemIoUconfigseg model weightlogs
eva_sem_seg_coco6420k89661.5 (ss) | 62.3 (ms)config🤗 HF linktraining | evaluation

EVA-CLIP

model name#param.precisiondatabatch sizeIN-1K zero-shot top-1weight
eva_clip_psz141.3Bfp16LAION-400M41K78.5🤗 HF link (2GB)

The ImageNet-1K zero-shot classification performance is higher than our paper (78.5 v.s. 78.2) because of longer training.

We choose to train a 1.3B CLIP model, not because it is easy, but because it is hard. Please refer to this note for a glance of the challenges in training very large CLIP.

To our knowledge, EVA-CLIP is the largest performant open-sourced CLIP model evaluated via zero-shot classification performance. We will updates the results in our paper soon. For more details of EVA-CLIP, please refer to Section 2.3.5 of our paper.

We hope open-sourcing EVA-CLIP can facilitate future research in multi-modal learning, representation leaning, AIGC, etc.

Citation

If you find our work helpful, please star this repo and cite the related articles. Thanks for your support!

@article{EVA,
  title={EVA: Exploring the Limits of Masked Visual Representation Learning at Scale},
  author={Fang, Yuxin and Wang, Wen and Xie, Binhui and Sun, Quan and Wu, Ledell and Wang, Xinggang and Huang, Tiejun and Wang, Xinlong and Cao, Yue},
  journal={arXiv preprint arXiv:2211.07636},
  year={2022}
}

License

The content of this project itself is licensed under the MIT License.

Contact

For help or issues using EVA, please open a GitHub issue.

We are hiring at all levels at BAAI Vision Team, including full-time researchers, engineers and interns. If you are interested in working with us on foundation model, self-supervised learning and multimodal learning, please contact Yue Cao (caoyue@baai.ac.cn) and Xinlong Wang (wangxinlong@baai.ac.cn).

Contributors

Yuxin-CV

15 commits

BAAI/EVA

Model

30

stars

15

commits

10

repos using this model

3

linked in READMEs

Dec 7, 2022

updated

README

EVA: An Open Billion-Scale Vision Foundation Model

EVA: Exploring the Limits of Masked Visual Representation Learning at Scale

Yuxin Fang2,1, Wen Wang3,1, Binhui Xie4,1, Quan Sun1, Ledell Wu1, Xinggang Wang2, Tiejun Huang1, Xinlong Wang1, Yue Cao1

1BAAI, 2HUST, 3ZJU, 4BIT

We launch EVA, a vision-centric foundation model to Explore the limits of Visual representation at scAle using only publicly accessible data and academic resources. EVA is a vanilla ViT pre-trained to reconstruct the masked out image-text aligned vision features (i.e., CLIP features) conditioned on visible image patches. Via this pretext task, we can efficiently scale up EVA to one billion parameters, and sets new records on a broad range of representative vision downstream tasks.

EVA is the first open-sourced billion-scale vision foundation model that achieves state-of-the-art performance on a broad range of downstream tasks.

Table of Contents

Image Classification

We provide all pre-trained & fine-tuned EVAs for the community. The following table summarizes the basic statistics of MIM pre-trained EVA and image classification EVA.

model name#param.pre-training epochs on merged-30Mintermeidate fine-tuning epochs on IN-21Kfine-tuning epochs on IN-1KIN-1K top-1 acc.weight
eva_psz141.0B150---🤗 HF link (2GB)
eva_psz14to161.0B150---🤗 HF link (2GB)
eva_21k_224px_psz141.0B15060--🤗 HF link (2GB)
eva_21k_1k_336px_psz14_ema1.0B150601089.6🤗 HF link (4GB)
eva_21k_1k_560px_psz14_ema1.0B150601589.7🤗 HF link (4GB)
  • eva_psz14to16 model interpolates the kernel size of patch_embed from 14x14 to 16x16. This is useful for object detection, instance segmentation & semantic segmentation, etc. See interpolate_patch_14to16.py for implementation details.
  • For MIM pre-trained EVA and EVA-CLIP, we use deepspeed fp16 format. IN-1K fine-tuned EVA weights are larger (4GB v.s. 2GB) because ema updates models with fp32 format. The weights of other downstream tasks are also with fp32 format.

Summary of EVA's image classification performance

modelIN-1KIN-V2IN-ReaLIN-Adv.IN-Ren.IN-Ske.ObjectNet
EVA89.681.690.886.288.367.760.9

Video Classification

datasetmodel nameinit. weightacc@1configweightlogs
Kinetics722eva_video_k722eva_psz14-config🤗 HF link (4.8GB)ft_k722
Kinetics400eva_video_k400eva_video_k72289.7config🤗 HF link (4.8GB)ft_k400
Kinetics600eva_video_k600eva_video_k72289.8config🤗 HF link (4.8GB)ft_k600
Kinetics700eva_video_k700eva_video_k72282.9config🤗 HF link (4.8GB)ft_k700

Object Detection & Instance Segmentation

model name#param.pre-training interations on Objects365weight
eva_o3651.1B380k🤗 HF link (4GB)

COCO 2017 (single-scale evaluation on val set)

init. model weightbatch sizeiterAP boxAP maskconfigmodel weight
eva_o3656435k64.253.9config🤗 HF link (4GB)
eva_o3656445k63.955.0config🤗 HF link (4GB)

LVIS v1.0 (single-scale evaluation on val set)

init. model weightbatch sizeiterAP boxAP maskconfigmodel weight
eva_o3656475k62.255.0config🤗 HF link (4GB)

Semantic Segmentation

COCO-Stuff-164K

init. model weightbatch sizeitercrop sizemIoU (ss)configseg model weightlogs
eva_psz14to163260k89653.4config🤗 HF linktraining | evaluation

ADE20K

init. model weightbatch sizeitercrop sizemIoUconfigseg model weightlogs
eva_sem_seg_coco6420k89661.5 (ss) | 62.3 (ms)config🤗 HF linktraining | evaluation

EVA-CLIP

model name#param.precisiondatabatch sizeIN-1K zero-shot top-1weight
eva_clip_psz141.3Bfp16LAION-400M41K78.5🤗 HF link (2GB)

The ImageNet-1K zero-shot classification performance is higher than our paper (78.5 v.s. 78.2) because of longer training.

We choose to train a 1.3B CLIP model, not because it is easy, but because it is hard. Please refer to this note for a glance of the challenges in training very large CLIP.

To our knowledge, EVA-CLIP is the largest performant open-sourced CLIP model evaluated via zero-shot classification performance. We will updates the results in our paper soon. For more details of EVA-CLIP, please refer to Section 2.3.5 of our paper.

We hope open-sourcing EVA-CLIP can facilitate future research in multi-modal learning, representation leaning, AIGC, etc.

Citation

If you find our work helpful, please star this repo and cite the related articles. Thanks for your support!

@article{EVA,
  title={EVA: Exploring the Limits of Masked Visual Representation Learning at Scale},
  author={Fang, Yuxin and Wang, Wen and Xie, Binhui and Sun, Quan and Wu, Ledell and Wang, Xinggang and Huang, Tiejun and Wang, Xinlong and Cao, Yue},
  journal={arXiv preprint arXiv:2211.07636},
  year={2022}
}

License

The content of this project itself is licensed under the MIT License.

Contact

For help or issues using EVA, please open a GitHub issue.

We are hiring at all levels at BAAI Vision Team, including full-time researchers, engineers and interns. If you are interested in working with us on foundation model, self-supervised learning and multimodal learning, please contact Yue Cao (caoyue@baai.ac.cn) and Xinlong Wang (wangxinlong@baai.ac.cn).

Contributors

Yuxin-CV

15 commits