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