Video-Text-to-Text
Transformers
Safetensors
English
moss_vl
feature-extraction
SFT
Video-Understanding
Image-Understanding
MOSS-VL
OpenMOSS
multimodal
video
vision-language
custom_code
Instructions to use OpenMOSS-Team/MOSS-VL-Instruct-0408 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/MOSS-VL-Instruct-0408 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("OpenMOSS-Team/MOSS-VL-Instruct-0408", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update video_processing_moss_vl.py
Browse files
video_processing_moss_vl.py
CHANGED
|
@@ -941,7 +941,7 @@ class MossVLVideoProcessor(BaseVideoProcessor):
|
|
| 941 |
do_convert_rgb: bool = True,
|
| 942 |
do_resize: bool = True,
|
| 943 |
size: Optional[SizeDict] = None,
|
| 944 |
-
|
| 945 |
do_rescale: bool = True,
|
| 946 |
rescale_factor: float = 1 / 255.0,
|
| 947 |
do_normalize: bool = True,
|
|
@@ -991,7 +991,7 @@ class MossVLVideoProcessor(BaseVideoProcessor):
|
|
| 991 |
stacked_videos = self.resize(
|
| 992 |
stacked_videos,
|
| 993 |
size=SizeDict(height=resized_height, width=resized_width),
|
| 994 |
-
|
| 995 |
)
|
| 996 |
stacked_videos = stacked_videos.view(B, T, C, resized_height, resized_width)
|
| 997 |
resized_videos_grouped[shape] = stacked_videos
|
|
|
|
| 941 |
do_convert_rgb: bool = True,
|
| 942 |
do_resize: bool = True,
|
| 943 |
size: Optional[SizeDict] = None,
|
| 944 |
+
resample: PILImageResampling = PILImageResampling.BICUBIC,
|
| 945 |
do_rescale: bool = True,
|
| 946 |
rescale_factor: float = 1 / 255.0,
|
| 947 |
do_normalize: bool = True,
|
|
|
|
| 991 |
stacked_videos = self.resize(
|
| 992 |
stacked_videos,
|
| 993 |
size=SizeDict(height=resized_height, width=resized_width),
|
| 994 |
+
resample=resample,
|
| 995 |
)
|
| 996 |
stacked_videos = stacked_videos.view(B, T, C, resized_height, resized_width)
|
| 997 |
resized_videos_grouped[shape] = stacked_videos
|