Update modeling_GOT.py
Browse files- modeling_GOT.py +4 -1
modeling_GOT.py
CHANGED
@@ -570,7 +570,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
570 |
do_sample=False,
|
571 |
num_beams = 1,
|
572 |
no_repeat_ngram_size = 20,
|
573 |
-
|
574 |
max_new_tokens=4096,
|
575 |
stopping_criteria=[stopping_criteria]
|
576 |
)
|
@@ -656,6 +656,7 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
656 |
|
657 |
with smart_open(html_path_2, 'w') as web_f_new:
|
658 |
web_f_new.write(new_web)
|
|
|
659 |
|
660 |
def dynamic_preprocess(self, image, min_num=1, max_num=6, image_size=1024, use_thumbnail=True):
|
661 |
|
@@ -845,3 +846,5 @@ class GOTQwenForCausalLM(Qwen2ForCausalLM):
|
|
845 |
|
846 |
with smart_open(html_path_2, 'w') as web_f_new:
|
847 |
web_f_new.write(new_web)
|
|
|
|
|
|
570 |
do_sample=False,
|
571 |
num_beams = 1,
|
572 |
no_repeat_ngram_size = 20,
|
573 |
+
streamer=streamer,
|
574 |
max_new_tokens=4096,
|
575 |
stopping_criteria=[stopping_criteria]
|
576 |
)
|
|
|
656 |
|
657 |
with smart_open(html_path_2, 'w') as web_f_new:
|
658 |
web_f_new.write(new_web)
|
659 |
+
return output_ids
|
660 |
|
661 |
def dynamic_preprocess(self, image, min_num=1, max_num=6, image_size=1024, use_thumbnail=True):
|
662 |
|
|
|
846 |
|
847 |
with smart_open(html_path_2, 'w') as web_f_new:
|
848 |
web_f_new.write(new_web)
|
849 |
+
|
850 |
+
return output_ids
|