Commit
·
c68f8ee
1
Parent(s):
ebd8715
update modeling_ovis.py
Browse files- modeling_ovis.py +1 -0
modeling_ovis.py
CHANGED
|
@@ -504,6 +504,7 @@ class Ovis(OvisPreTrainedModel):
|
|
| 504 |
f' but got {type(text_or_conversations)}')
|
| 505 |
|
| 506 |
if frame_selector is not None:
|
|
|
|
| 507 |
conversations, images = frame_selector(conversations=conversations, frames=images, **frame_selector_kwargs)
|
| 508 |
|
| 509 |
# format conversations
|
|
|
|
| 504 |
f' but got {type(text_or_conversations)}')
|
| 505 |
|
| 506 |
if frame_selector is not None:
|
| 507 |
+
frame_selector_kwargs = frame_selector_kwargs or {}
|
| 508 |
conversations, images = frame_selector(conversations=conversations, frames=images, **frame_selector_kwargs)
|
| 509 |
|
| 510 |
# format conversations
|