We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d033d commit af1c864Copy full SHA for af1c864
docs/source/en/model_doc/mgp-str.mdx
@@ -54,7 +54,7 @@ into a single instance to both extract the input features and decode the predict
54
>>> url = "https://i.postimg.cc/ZKwLg2Gw/367-14.png"
55
>>> image = Image.open(requests.get(url, stream=True).raw).convert("RGB")
56
57
->>> pixel_values = processor(image, return_tensors="pt").pixel_values
+>>> pixel_values = processor(images=image, return_tensors="pt").pixel_values
58
>>> outputs = model(pixel_values)
59
60
>>> generated_text = processor.batch_decode(outputs.logits)['generated_text']
0 commit comments