ybelkada commited on
Commit
0f9a538
1 Parent(s): d169786

Update README.md

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