Mizukiluke
commited on
Commit
•
77ab9a6
1
Parent(s):
a0640d2
Update modeling_mplugowl3.py
Browse files- modeling_mplugowl3.py +1 -4
modeling_mplugowl3.py
CHANGED
@@ -175,10 +175,7 @@ class mPLUGOwl3Model(mPLUGOwl3PreTrainedModel):
|
|
175 |
use_image_id=None,
|
176 |
**kwargs
|
177 |
):
|
178 |
-
|
179 |
-
cut_flag=False
|
180 |
-
else:
|
181 |
-
cut_flag=True
|
182 |
if processor is None:
|
183 |
if self.processor is None:
|
184 |
processor = self.init_processor(tokenizer)
|
|
|
175 |
use_image_id=None,
|
176 |
**kwargs
|
177 |
):
|
178 |
+
cut_flag = kwargs.get('kwargs', True)
|
|
|
|
|
|
|
179 |
if processor is None:
|
180 |
if self.processor is None:
|
181 |
processor = self.init_processor(tokenizer)
|