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.
Spotlights
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.
Before 14/11/2023, we have observed that for some random pictures Monkey can achieve more accurate results than GPT4V.
We also provide the source code and the model weight for the original demo, allowing you to customize certain parameters for a more unique experience. The specific operations are as follows:
Modify
DEFAULT_CKPT_PATH="pathto/Monkey"
in the
demo.py
file to your model weight path.
Run the demo using the following command:
python demo.py
Online:
Run the demo and download model weights online with the following command:
python demo.py -c echo840/Monkey
Dataset
We have open-sourced the data generated by the multi-level description generation method. You can download it at
Detailed Caption
.
Evaluate
We offer evaluation code for 14 Visual Question Answering (VQA) datasets in the
evaluate_vqa.py
file, facilitating a quick verification of results. The specific operations are as follows:
We also offer Monkey's model definition and training code, which you can explore above. You can execute the training code through executing
finetune_ds_debug.sh
.
ATTENTION:
Specify the path to your training data, which should be a json file consisting of a list of conversations.
If you wish to refer to the baseline results published here, please use the following BibTeX entries:
@article{li2023monkey,
title={Monkey: Image Resolution and Text Label Are Important Things for Large Multi-modal Models},
author={Li, Zhang and Yang, Biao and Liu, Qiang and Ma, Zhiyin and Zhang, Shuo and Yang, Jingxu and Sun, Yabo and Liu, Yuliang and Bai, Xiang},
journal={arXiv preprint arXiv:2311.06607},
year={2023}
}
If you find the Monkey cute, please star. It would be a great encouragement for us.
Acknowledgement
Qwen-VL
: the codebase we built upon. Thanks for the authors of Qwen for providing the framework.
Copyright
We welcome suggestions to help us improve the Monkey. For any query, please contact Dr. Yuliang Liu:
[email protected]
. If you find something interesting, please also feel free to share with us through email or open an issue. Thanks!
Runs of echo840 Monkey on huggingface.co
793
Total runs
-11
24-hour runs
-34
3-day runs
-43
7-day runs
565
30-day runs
More Information About Monkey huggingface.co Model
Monkey huggingface.co
Monkey huggingface.co is an AI model on huggingface.co that provides Monkey's model effect (), which can be used instantly with this echo840 Monkey model. huggingface.co supports a free trial of the Monkey model, and also provides paid use of the Monkey. Support call Monkey model through api, including Node.js, Python, http.
Monkey huggingface.co is an online trial and call api platform, which integrates Monkey's modeling effects, including api services, and provides a free online trial of Monkey, you can try Monkey online for free by clicking the link below.
Monkey is an open source model from GitHub that offers a free installation service, and any user can find Monkey on GitHub to install. At the same time, huggingface.co provides the effect of Monkey install, users can directly use Monkey installed effect in huggingface.co for debugging and trial. It also supports api for free installation.