README.md 3.19 KB
Newer Older
lvskiller's avatar
readme  
lvskiller committed
1
2
# Monkey: Image Resolution and Text Label Are Important Things for Large Multi-modal Models

Melos's avatar
Melos committed
3

Yuliang Liu's avatar
Yuliang Liu committed
4
5
6
7
8
<br>
<p align="center">
    <img src="images/logo_monkey.png" width="300"/>
<p>
<br>
lvskiller's avatar
readme  
lvskiller committed
9
10

<div align="center">
Yuliang Liu's avatar
Yuliang Liu committed
11
Zhang Li*, Biao Yang*, Qiang Liu, Zhiyin Ma, Shuo Zhang, Jingxu Yang, Yabo Sun, Yuliang Liu†, Xiang Bai*
lvskiller's avatar
readme  
lvskiller committed
12
13
14
15
</div>
<div align="center">
<strong>Huazhong University of Science and Technology, Kingsoft</strong>
</div>
Yuliang Liu's avatar
Yuliang Liu committed
16
17
18
19

<p align="center">
<a href="updating">Paper</a>&nbsp&nbsp | &nbsp&nbsp<a href="https://53965e0026f6da5097.gradio.live">Demo</a>&nbsp&nbsp | &nbsp&nbsp<a href="Monkey Model">Monkey Models</a>&nbsp | &nbsp <a href="updating">Tutorial</a>
</p>
Melos's avatar
Melos committed
20
21
22

-----

Yuliang Liu's avatar
Yuliang Liu committed
23
**Monkey** brings a training-efficient approach to effectively improve the input resolution capacity up to 896 x 1344 pixels without pretraining from the start. To bridge the gap between simple text labels and high input resolution, we propose a multi-level description generation method, which automatically provides rich information that can guide the model to learn the contextual association between scenes and objects. With the synergy of these two designs, our model achieved excellent results on multiple benchmarks. By comparing our model with various LMMs, including GPT4V, our model demonstrates promising performance in image captioning by paying attention to textual information and capturing fine details within the images; its improved input resolution also enables remarkable performance in document images with dense text. 
lvskiller's avatar
readme  
lvskiller committed
24
25
26

## Spotlights

Melos's avatar
Melos committed
27
28
29
- **Contextual associations.**. Our method demonstrates a superior ability to infer the relationships between targets more effectively when answering questions, which results in delivering more comprehensive and insightful results.
- **Support resolution up to 1344 x 896.** Surpassing the standard 448 x 448 resolution typically employed for LMMs, this significant increase in resolution augments the ability to discern and understand unnoticeable or tightly clustered objects and dense text. 
- **Enhanced general performance.** We carried out testing across 16 diverse datasets, leading to impressive performance by our Monkey model in tasks such as Image Captioning, General Visual Question Answering, Text-centric Visual Question Answering, and Document-oriented Visual Question Answering.
lvskiller's avatar
readme  
lvskiller committed
30
31
32

## performance

Yuliang Liu's avatar
Yuliang Liu committed
33
34
35
36
37
38
<br>
<p align="center">
    <img src="images/performance.png" width="800"/>
<p>
<br>
  
lvskiller's avatar
readme  
lvskiller committed
39
40
## Demo

Yuliang Liu's avatar
Yuliang Liu committed
41
We have a demo open for everyone to play. [Demo](https://53965e0026f6da5097.gradio.live)
lvskiller's avatar
readme  
lvskiller committed
42
43
44

## Cases

Melos's avatar
Melos committed
45
Our model can accurately describe almost all the details in the image.
lvskiller's avatar
readme  
lvskiller committed
46

Melos's avatar
Melos committed
47
![](images/caption_1.png)
lvskiller's avatar
readme  
lvskiller committed
48
49
50

Besides, our model has also demonstrated some capabilities in fine-grained question answering and even answering questions involving world knowledge.

Melos's avatar
Melos committed
51
![](images/qa_1.png)
lvskiller's avatar
readme  
lvskiller committed
52
53
54
55
56
57
58

With the power of large-scale architecture, we have also achieved impressive performance on document-based tasks.

![](images/Doc_Chart.png)

## Acknowledgement

Melos's avatar
Melos committed
59
[Qwen-VL](https://github.com/QwenLM/Qwen-VL.git): the codebase we built upon. Thanks for the authors of Qwen for providing the framework.
lvskiller's avatar
readme  
lvskiller committed
60

Yuliang Liu's avatar
Yuliang Liu committed
61
62
63
## Copyright

For commercial purpose usage, please contact Dr. Yuliang Liu: ylliu@hust.edu.cn