Update README.md
Browse files
README.md
CHANGED
@@ -19,6 +19,7 @@ tags:
|
|
19 |
## Quick Start
|
20 |
The model is trained based on the Qwen2.5-VL-3B-Instruct. Here we present an example of the use of inference.
|
21 |
```
|
|
|
22 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
|
23 |
from qwen_vl_utils import process_vision_info
|
24 |
|
@@ -45,9 +46,9 @@ messages = [
|
|
45 |
"content": [
|
46 |
{
|
47 |
"type": "image",
|
48 |
-
"image":
|
49 |
},
|
50 |
-
{"type": "text", "text":
|
51 |
],
|
52 |
}
|
53 |
]
|
|
|
19 |
## Quick Start
|
20 |
The model is trained based on the Qwen2.5-VL-3B-Instruct. Here we present an example of the use of inference.
|
21 |
```
|
22 |
+
import torch
|
23 |
from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
|
24 |
from qwen_vl_utils import process_vision_info
|
25 |
|
|
|
46 |
"content": [
|
47 |
{
|
48 |
"type": "image",
|
49 |
+
"image": image_path,
|
50 |
},
|
51 |
+
{"type": "text", "text": question},
|
52 |
],
|
53 |
}
|
54 |
]
|