Fix import error
Browse filesThis file returns `ImportError("cannot import name 'VideoInput' from 'transformers.image_utils' (/home/rhassanaly/.cache/pypoetry/virtualenvs/benchmark-B9CbOoqA-py3.13/lib/python3.13/site-packages/transformers/image_utils.py)")`.
I fixed the import of VideoInput.
image_processing_videollama3.py
CHANGED
|
@@ -39,7 +39,6 @@ from transformers.image_utils import (
|
|
| 39 |
ChannelDimension,
|
| 40 |
ImageInput,
|
| 41 |
PILImageResampling,
|
| 42 |
-
VideoInput,
|
| 43 |
get_image_size,
|
| 44 |
infer_channel_dimension_format,
|
| 45 |
is_scaled_image,
|
|
@@ -47,6 +46,7 @@ from transformers.image_utils import (
|
|
| 47 |
make_list_of_images,
|
| 48 |
to_numpy_array,
|
| 49 |
)
|
|
|
|
| 50 |
from transformers.utils import TensorType, is_vision_available, logging
|
| 51 |
|
| 52 |
|
|
|
|
| 39 |
ChannelDimension,
|
| 40 |
ImageInput,
|
| 41 |
PILImageResampling,
|
|
|
|
| 42 |
get_image_size,
|
| 43 |
infer_channel_dimension_format,
|
| 44 |
is_scaled_image,
|
|
|
|
| 46 |
make_list_of_images,
|
| 47 |
to_numpy_array,
|
| 48 |
)
|
| 49 |
+
from transformers.video_utils import VideoInput
|
| 50 |
from transformers.utils import TensorType, is_vision_available, logging
|
| 51 |
|
| 52 |
|