Update README.md
Browse files
README.md
CHANGED
@@ -7,9 +7,9 @@ This is the [Qwen/Qwen2-VL-2B-Instruct](https://huggingface.co/Qwen/Qwen2-VL-2B-
|
|
7 |
|
8 |
Use OpenVINO GenAI to run inference on this model:
|
9 |
|
10 |
-
- Install OpenVINO GenAI
|
11 |
```
|
12 |
-
pip install --upgrade
|
13 |
```
|
14 |
- Download a test image: `curl -O "https://storage.openvinotoolkit.org/test_data/images/dog.jpg"`
|
15 |
- Run inference:
|
@@ -22,7 +22,6 @@ from PIL import Image
|
|
22 |
|
23 |
# Choose GPU instead of CPU in the line below to run the model on Intel integrated or discrete GPU
|
24 |
pipe = openvino_genai.VLMPipeline("./Qwen2-VL-2B-Instruct-ov-fp16", "CPU")
|
25 |
-
pipe.start_chat()
|
26 |
|
27 |
image = Image.open("dog.jpg")
|
28 |
image_data = np.array(image.getdata()).reshape(1, image.size[1], image.size[0], 3).astype(np.uint8)
|
|
|
7 |
|
8 |
Use OpenVINO GenAI to run inference on this model:
|
9 |
|
10 |
+
- Install OpenVINO GenAI and pillow:
|
11 |
```
|
12 |
+
pip install --upgrade pillow openvino-genai openvino openvino-tokenizers
|
13 |
```
|
14 |
- Download a test image: `curl -O "https://storage.openvinotoolkit.org/test_data/images/dog.jpg"`
|
15 |
- Run inference:
|
|
|
22 |
|
23 |
# Choose GPU instead of CPU in the line below to run the model on Intel integrated or discrete GPU
|
24 |
pipe = openvino_genai.VLMPipeline("./Qwen2-VL-2B-Instruct-ov-fp16", "CPU")
|
|
|
25 |
|
26 |
image = Image.open("dog.jpg")
|
27 |
image_data = np.array(image.getdata()).reshape(1, image.size[1], image.size[0], 3).astype(np.uint8)
|