Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
teowu committed Nov 6, 2023
1 parent 6540cdf commit 4dc7f65
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,13 @@ See the codes and scripts below.

<details>
<summary>Example Code (Single Query)</summary>

```python
from llava.mm_utils import get_model_name_from_path
from llava.eval.run_llava import eval_model

# default LLaVA-v1.5 (7B)
# change to `model_path = "teowu/llava_v1.5_13b_qinstruct_preview_v0.1"` for LLaVA-v1.5 (13B)
model_path = "teowu/llava_v1.5_7b_qinstruct_preview_v0.1"

prompt = "Rate the quality of the image. Think step by step."
image_file = "fig/sausage.jpg"

args = type('Args', (), {
"model_path": model_path,
"model_base": None,
Expand All @@ -82,7 +78,6 @@ args = type('Args', (), {
"image_file": image_file,
"sep": ",",
})()

eval_model(args)
```
</details>
Expand Down

0 comments on commit 4dc7f65

Please sign in to comment.