ybelkada commited on
Commit
0db0c8c
1 Parent(s): d5e0832

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -0
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)