Views
No views yet
[!TIP] LLaVA-NeXT and transformers now supports MLCD-ViT-bigG-14-448px.
| Vision Tower | RoPE2D | ChartQA | DocVQA | InfoVQA | OCRBench | MMMU |
|---|---|---|---|---|---|---|
| CLIP (ViT-L-14-336px) | × | 66.52 | 75.21 | 38.88 | 525.00 | 44.20 |
| SigLIP (ViT-SO400M-384px) | × | 69.28 | 76.71 | 41.38 | 554.00 | 46.78 |
| DFN5B (ViT-H-14-378px) | × | 64.36 | 70.87 | 38.59 | 473.00 | 48.00 |
| MLCD (ViT-L-14-336px) | × | 67.84 | 76.46 | 43.48 | 531.00 | 44.30 |
| MLCD (ViT-bigG-14-336px) | √ | 71.07 | 79.63 | 44.38 | 572.00 | 46.78 |
| MLCD (ViT-bigG-14-448px) | √ | 73.80 | 83.34 | 46.59 | 582.00 | 46.00 |
1pip install torch transformers
2git clone https://github.com/deepglint/unicom
3cd unicom/mlcd1from vit_rope2d_hf import MLCDVisionModel
2from transformers import CLIPImageProcessor
3from PIL import Image
4import requests
5import torch
6
7# Load model and processor
8model = MLCDVisionModel.from_pretrained("DeepGlint-AI/mlcd-vit-bigG-patch14-448")
9processor = CLIPImageProcessor.from_pretrained("DeepGlint-AI/mlcd-vit-bigG-patch14-448")
10
11# Process single image
12url = "http://images.cocodataset.org/val2017/000000039769.jpg"
13image = Image.open(requests.get(url, stream=True).raw)
14inputs = processor(images=image, return_tensors="pt")
15
16# Get visual features
17with torch.no_grad():
18 outputs = model(**inputs)
19features = outputs.last_hidden_state
20
21print(f"Extracted features shape: {features.shape}")1@inproceedings{anxiang_2024_mlcd,
2 title={Multi-label Cluster Discrimination for Visual Representation Learning},
3 author={An, Xiang and Yang, Kaicheng and Dai, Xiangzi and Feng, Ziyong and Deng, Jiankang},
4 booktitle={ECCV},
5 year={2024}
6}