Skip to content

Commit a46c4f0

Browse files
[bugfix] Fix the output format for VideoClips.subset (#6700)
Co-authored-by: Vasilis Vryniotis <[email protected]>
1 parent 4a99bae commit a46c4f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

torchvision/datasets/video_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def subset(self, indices: List[int]) -> "VideoClips":
198198
_video_max_dimension=self._video_max_dimension,
199199
_audio_samples=self._audio_samples,
200200
_audio_channels=self._audio_channels,
201+
output_format=self.output_format,
201202
)
202203

203204
@staticmethod

0 commit comments

Comments
 (0)