Update README.md
Browse files
README.md
CHANGED
@@ -46,7 +46,7 @@ model.to("cuda:0")
|
|
46 |
# prepare image and text prompt, using the appropriate prompt template
|
47 |
url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
|
48 |
image = Image.open(requests.get(url, stream=True).raw)
|
49 |
-
prompt = "
|
50 |
|
51 |
inputs = processor(prompt, image, return_tensors="pt").to("cuda:0")
|
52 |
|
|
|
46 |
# prepare image and text prompt, using the appropriate prompt template
|
47 |
url = "https://github.com/haotian-liu/LLaVA/blob/1a91fc274d7c35a9b50b3cb29c4247ae5837ce39/images/llava_v1_5_radar.jpg?raw=true"
|
48 |
image = Image.open(requests.get(url, stream=True).raw)
|
49 |
+
prompt = "<|im_start|>system\nAnswer the questions.<|im_end|><|im_start|>user\n<image>\nWhat is shown in this image?<|im_end|><|im_start|>assistant\n"
|
50 |
|
51 |
inputs = processor(prompt, image, return_tensors="pt").to("cuda:0")
|
52 |
|