Lyrics
is a Large Vision Language Model (LVLM) developed by IDEA CCNL. In the two-stage training process of pre-training (representation alignment of vision-language) and instruction fine-tuning (generative learning from vision to language), Lyrics construct a visual refiner to extract local visual features and embodied spatial representations. It consists of image tagging (RAM), object detection (Grounding DINO) and semantic segmentation (SAM) modules. This method can prevent the absence of fine-grained visual objects, causing irreparable visual hallucinations and factual errors in the model.
Lyrics can take images, text, and visual objects as input, and text and spatial representations of visual objects as output. The Lyrics model has a powerful ability of fine-grained visual feature extraction and understanding, and is capable of various visual-centric tasks, including multi-turn visual conversation, visual scene understanding and reasoning, commonsense-grounded image description, referential dialogue.
Lyrics
proposed MQ-Former as a visual signal perceptron to bridge multi-scale visual and text information, which aligns the global visual features provided by ViT, the local visual features provided by the visual refiner, the spatial representation of visual objects and the image caption through four pre-training tasks. The model has the ability to extract semantically perceived visual objects.
安装要求 (Requirements)
python 3.8及以上版本
pytorch 1.12及以上版本
建议使用CUDA 11.3及以上(GPU用户需考虑此选项)
python 3.8 and above
pytorch 1.12 and above
CUDA 11.3 and above are recommended (this is for GPU users)
Before running the code, you need to change the configuration path of the relevant file in config.json to the path where the model breakpoint is located, or put the running code in the same directory as config.json.
在 General VQA 中,Lyrics 在四个数据集取得了
SOTA
的结果,并在 Vizwiz 数据集上与 Qwen-VL 旗鼓相当。
In Image Captioning, Lyrics on COCO, Nocaps (0-shot), and Flickr30K (0-shot) datasets outperform LVLM models of the same size, achieving
SOTA
results.
In General VQA, Lyrics achieved
SOTA
results across four datasets and tied with Qwen-VL on the Vizwiz dataset.
文本导向的视觉问答 (Text-oriented VQA)
在文字相关的识别/问答评测上,Lyrics 取得了当前规模下通用 LVLM 的
SOTA
准确率,与 PaLI-X-55B 的性能不相上下。
对文字的检测和理解精度对这类任务的测评有很大的影响,Lyrics 引入的目标检测和语义分割模块有助于模型更精确地从图像中分离出文字信息,这比起使用更高分辨率 ViT (448 × 448) 的 Qwen-VL 具有更高的性能。
Lyrics achieves the highest
SOTA
accuracy of a general-purpose LVLM with the same scale, matching the performance of the PaLI-X-55B, on text-oriented recognition/question-answer evaluations.
Text detection and understanding accuracy have a great impact on the evaluation of such tasks. The object detection and semantic segmentation modules introduced by Lyrics help the model to more accurately separate text information from images, which has higher performance than Qwen-VL with higher resolution ViT (448 × 448).
In the REC task of visual objects, Lyrics slightly exceeds Qwen-VL and Shikra-13B after fitting a small amount of data. The
SOTA
average performance of the current Geaneralist LVLM model on the Refcoco, Refcoco+ and Refcocog datasets is obtained.
If you are using the resource for your work, please cite the our
paper
:
@misc{lu2023lyrics,
title={Lyrics: Boosting Fine-grained Language-Vision Alignment and Comprehension via Semantic-aware Visual Objects},
author={Junyu Lu and Ruyi Gan and Dixiang Zhang and Xiaojun Wu and Ziwei Wu and Renliang Sun and Jiaxing Zhang and Pingjian Zhang and Yan Song},
year={2023},
eprint={2312.05278},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Ziya-Visual-Lyrics-14B huggingface.co is an AI model on huggingface.co that provides Ziya-Visual-Lyrics-14B's model effect (), which can be used instantly with this IDEA-CCNL Ziya-Visual-Lyrics-14B model. huggingface.co supports a free trial of the Ziya-Visual-Lyrics-14B model, and also provides paid use of the Ziya-Visual-Lyrics-14B. Support call Ziya-Visual-Lyrics-14B model through api, including Node.js, Python, http.
Ziya-Visual-Lyrics-14B huggingface.co is an online trial and call api platform, which integrates Ziya-Visual-Lyrics-14B's modeling effects, including api services, and provides a free online trial of Ziya-Visual-Lyrics-14B, you can try Ziya-Visual-Lyrics-14B online for free by clicking the link below.
IDEA-CCNL Ziya-Visual-Lyrics-14B online free url in huggingface.co:
Ziya-Visual-Lyrics-14B is an open source model from GitHub that offers a free installation service, and any user can find Ziya-Visual-Lyrics-14B on GitHub to install. At the same time, huggingface.co provides the effect of Ziya-Visual-Lyrics-14B install, users can directly use Ziya-Visual-Lyrics-14B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Ziya-Visual-Lyrics-14B install url in huggingface.co: