Update README.md
Browse files
README.md
CHANGED
@@ -56,7 +56,7 @@ inputs = processor(text=text, images=test_image, return_tensors="pt").to("cuda")
|
|
56 |
for k,v in inputs.items():
|
57 |
print(k,v.shape)
|
58 |
|
59 |
-
MAX_LENGTH =
|
60 |
# Autoregressively generate
|
61 |
# We use greedy decoding here, for more fancy methods see https://huggingface.co/blog/how-to-generate
|
62 |
generated_ids = base_model.generate(**inputs, max_new_tokens=MAX_LENGTH)
|
@@ -95,7 +95,7 @@ inputs = processor(text=text, images=test_image, return_tensors="pt").to("cuda")
|
|
95 |
for k,v in inputs.items():
|
96 |
print(k,v.shape)
|
97 |
|
98 |
-
MAX_LENGTH =
|
99 |
# Autoregressively generate
|
100 |
# We use greedy decoding here, for more fancy methods see https://huggingface.co/blog/how-to-generate
|
101 |
generated_ids = base_model.generate(**inputs, max_new_tokens=MAX_LENGTH)
|
|
|
56 |
for k,v in inputs.items():
|
57 |
print(k,v.shape)
|
58 |
|
59 |
+
MAX_LENGTH = 200
|
60 |
# Autoregressively generate
|
61 |
# We use greedy decoding here, for more fancy methods see https://huggingface.co/blog/how-to-generate
|
62 |
generated_ids = base_model.generate(**inputs, max_new_tokens=MAX_LENGTH)
|
|
|
95 |
for k,v in inputs.items():
|
96 |
print(k,v.shape)
|
97 |
|
98 |
+
MAX_LENGTH = 200
|
99 |
# Autoregressively generate
|
100 |
# We use greedy decoding here, for more fancy methods see https://huggingface.co/blog/how-to-generate
|
101 |
generated_ids = base_model.generate(**inputs, max_new_tokens=MAX_LENGTH)
|