mirror of
https://github.com/huggingface/transformers.git
synced 2025-10-20 17:13:56 +08:00
fix wrong height and width when read video use torchvision (#41091)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user