🚀 CoMP-MM-1B模型卡
CoMP-MM-1B是一个视觉基础模型(VFM),支持原生图像分辨率输入。它基于 SigLIP 进行持续预训练。
属性 |
详情 |
基础模型 |
google/siglip-so400m-patch14-384 |
许可证 |
apache-2.0 |
任务类型 |
图像特征提取 |
库名称 |
slimm |
🚀 快速开始
安装与使用
安装GitHub仓库,并使用以下代码开始使用该模型:
import torch
from slimm.model.processor import SliMMQwen2VLProcessor
from slimm.model.utils_vl import process_vision_info
from slimm.model.vision_encoder import CoMPSiglipVisionModel
from PIL import Image
model_path = "SliMM-X/CoMP-SigLIP-So400M"
model = CoMPSiglipVisionModel.from_pretrained(
model_path, torch_dtype="auto", device_map="cuda", w_merger=False
).to(torch.bfloat16)
processor = SliMMQwen2VLProcessor.from_pretrained(model_path)
image_input = Image.open("https://slimm-x.github.io/comp/figs/teaser.png")
inputs = processor(
images=image_input,
return_tensors="pt",
)
inputs = inputs.to("cuda")
output_feat = model(inputs.pixel_values.to(torch.bfloat16), inputs.image_grid_thw)
print(output_feat)
📚 详细文档
模型资源
- 仓库地址:https://github.com/SliMM-X/CoMP-MM
- 论文地址:https://arxiv.org/abs/2503.18931
- 项目页面:https://slimm-x.github.io/comp
📄 许可证
本模型使用 apache-2.0
许可证。
📚 引用
如果您使用了该模型,请使用以下 BibTeX 引用:
@article{comp2025,
title={CoMP: Continual Multimodal Pre-training for Vision Foundation Models},
author={Chen, Yitong and Meng, Lingchen and Peng, Wujian and Wu, Zuxuan and Jiang, Yu-Gang},
year={2025},
journal={arXiv preprint arXiv:2503.18931},
}