rhassana commited on
Commit
1de2364
·
verified ·
1 Parent(s): 9f7acdf

Fix VideoInput import error

Browse files

VideoInput was import from transformers.image_inputs which was causing an error when using this model.

Files changed (1) hide show
  1. image_processing_videollama3.py +1 -1
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