fix wrong height and width when read video use torchvision (#41091)

This commit is contained in:
Jinde.Song
2025-09-23 20:35:44 +08:00
committed by GitHub
parent 870add3daf
commit 946e5f95ea

View File

@ -546,8 +546,8 @@ def read_video_torchvision(
metadata.update(
{
"frames_indices": indices,
"height": video.shape[1],
"width": video.shape[2],
"height": video.shape[2],
"width": video.shape[3],
}
)
return video, metadata