Update README.md
Browse files
README.md
CHANGED
@@ -72,6 +72,7 @@ model = LlavaForConditionalGeneration.from_pretrained(
|
|
72 |
low_cpu_mem_usage=True,
|
73 |
).to(0)
|
74 |
|
|
|
75 |
|
76 |
raw_image = Image.open(requests.get(image_file, stream=True).raw)
|
77 |
inputs = processor(prompt, raw_image, return_tensors='pt').to(0, torch.float16)
|
|
|
72 |
low_cpu_mem_usage=True,
|
73 |
).to(0)
|
74 |
|
75 |
+
processor = AutoProcessor.from_pretrained(model_id)
|
76 |
|
77 |
raw_image = Image.open(requests.get(image_file, stream=True).raw)
|
78 |
inputs = processor(prompt, raw_image, return_tensors='pt').to(0, torch.float16)
|