Update README.md
Browse files
README.md
CHANGED
@@ -39,7 +39,7 @@ features = feature_extractor(images=[img], return_tensors="pt")
|
|
39 |
pixel_values = features.pixel_values.to(device)
|
40 |
|
41 |
generated_captions = tokenizer.batch_decode(
|
42 |
-
model.generate(pixel_values, max_new_tokens=
|
43 |
skip_special_tokens=True,
|
44 |
)
|
45 |
|
|
|
39 |
pixel_values = features.pixel_values.to(device)
|
40 |
|
41 |
generated_captions = tokenizer.batch_decode(
|
42 |
+
model.generate(pixel_values, max_new_tokens=20),
|
43 |
skip_special_tokens=True,
|
44 |
)
|
45 |
|