Views
No views yet
1@misc{wu2023qinstruct,
2 title={Q-Instruct: Improving Low-level Visual Abilities for Multi-modality Foundation Models},
3 author={Haoning Wu and Zicheng Zhang and Erli Zhang and Chaofeng Chen and Liang Liao and Annan Wang and Kaixin Xu and Chunyi Li and Jingwen Hou and Guangtao Zhai and Geng Xue and Wenxiu Sun and Qiong Yan and Weisi Lin},
4 year={2023},
5 eprint={2311.06783},
6 archivePrefix={arXiv},
7 primaryClass={cs.CV}
8}1@misc{ye2023mplugowl2,
2 title={mPLUG-Owl2: Revolutionizing Multi-modal Large Language Model with Modality Collaboration},
3 author={Qinghao Ye and Haiyang Xu and Jiabo Ye and Ming Yan and Anwen Hu and Haowei Liu and Qi Qian and Ji Zhang and Fei Huang and Jingren Zhou},
4 year={2023},
5 eprint={2311.04257},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}1git clone https://github.com/X-PLUG/mPLUG-Owl.git
2cd mPLUG_Owl/mPLUG_Owl2/
3pip install -e .1import os
2os.environ["CUDA_VISIBLE_DEVICES"] = "0"
3from mplug_owl2.mm_utils import get_model_name_from_path
4from eval_scripts.mplug_owl_2.run_mplug_owl2 import eval_model
5model_path = "teowu/mplug_owl2_7b_448_qinstruct_preview_v0.1"
6prompt = "Rate the quality of the image. Think step by step."
7image_file = "fig/sausage.jpg"
8args = type('Args', (), {
9 "model_path": model_path,
10 "model_base": None,
11 "model_name": get_model_name_from_path(model_path),
12 "query": prompt,
13 "conv_mode": None,
14 "image_file": image_file,
15 "sep": ",",
16})()
17eval_model(args)