andrewqian123
commited on
Update modeling_minicpmv.py
Browse files- modeling_minicpmv.py +1 -1
modeling_minicpmv.py
CHANGED
@@ -304,9 +304,9 @@ class MiniCPMV(MiniCPMVPreTrainedModel):
|
|
304 |
batchI = []
|
305 |
for ind in range(len(images)):
|
306 |
image = images[ind]
|
|
|
307 |
if image is not None and isinstance(copy_msgs[0]["content"], str):
|
308 |
# deep copy element
|
309 |
-
copy_msgs = deepcopy(msgs[ind])
|
310 |
copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
311 |
|
312 |
imagelist = image
|
|
|
304 |
batchI = []
|
305 |
for ind in range(len(images)):
|
306 |
image = images[ind]
|
307 |
+
copy_msgs = deepcopy(msgs[ind])
|
308 |
if image is not None and isinstance(copy_msgs[0]["content"], str):
|
309 |
# deep copy element
|
|
|
310 |
copy_msgs[0]["content"] = [image, copy_msgs[0]["content"]]
|
311 |
|
312 |
imagelist = image
|