Views
No views yet
1from llava.mm_utils import get_model_name_from_path
2from llava.eval.run_llava import eval_model
3
4model_path = "vonjack/Hermes-2-Pro-BakLLaVA-Mistral-7B"
5
6prompt = "What's the content of the image?"
7image_file = "https://www.ilankelman.org/stopsigns/australia.jpg"
8
9args = type('Args', (), {
10 "model_path": model_path,
11 "model_base": None,
12 "model_name": get_model_name_from_path(model_path),
13 "query": prompt,
14 "conv_mode": None,
15 "image_file": image_file,
16 "sep": ",",
17 "temperature": 0,
18 "top_p": None,
19 "num_beams": 1,
20 "max_new_tokens": 512
21})()
22
23eval_model(args)