You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: samples/cpp/visual_language_chat/export_MiniCPM-V-2_6.py
+2-2
Original file line number
Diff line number
Diff line change
@@ -958,8 +958,8 @@ def main():
958
958
gc.collect()
959
959
960
960
convert_vision_encoder(model, model_dir)
961
-
ov_cpm=init_model(model_dir, "CPU")
962
-
print(ov_cpm.chat(Image.open(requests.get("https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11", stream=True).raw), [{"role": "user", "content": "What is unusual on this image?"}], ov_cpm.processor.tokenizer))
961
+
# ov_cpm = init_model(model_dir, "CPU")
962
+
# print(ov_cpm.chat(Image.open(requests.get("https://github.com/openvinotoolkit/openvino_notebooks/assets/29454499/d5fbbd1a-d484-415c-88cb-9986625b7b11", stream=True).raw), [{"role": "user", "content": "What is unusual on this image?"}], ov_cpm.processor.tokenizer))
0 commit comments