Mizukiluke commited on
Commit
c24dde2
1 Parent(s): b51625d

Update modeling_mplugowl3.py

Browse files
Files changed (1) hide show
  1. 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
- if len(images)>1:
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)