HwwwH commited on
Commit
5ff7973
1 Parent(s): 3a243ee

Update modeling_minicpmv.py

Browse files
Files changed (1) hide show
  1. modeling_minicpmv.py +2 -1
modeling_minicpmv.py CHANGED
@@ -292,7 +292,8 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
292
 
293
  if batched is False:
294
  images_list, msgs_list = [images_list], [msgs_list]
295
- assert len(images_list) == len(msgs_list), "The batch dim of images_list and msgs_list should be the same."
 
296
 
297
  if processor is None:
298
  if self.processor is None:
 
292
 
293
  if batched is False:
294
  images_list, msgs_list = [images_list], [msgs_list]
295
+ if images_list is not None:
296
+ assert len(images_list) == len(msgs_list), "The batch dim of images_list and msgs_list should be the same."
297
 
298
  if processor is None:
299
  if self.processor is None: