We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24c54fe commit 5cd0cd2Copy full SHA for 5cd0cd2
torchvision/io/video.py
@@ -115,7 +115,7 @@ def write_video(
115
# PyAV does not support floating point numbers with decimal point
116
# and will throw OverflowException in case this is not the case
117
if isinstance(fps, float):
118
- fps = np.round(fps)
+ fps = int(np.round(fps))
119
120
with av.open(filename, mode="w") as container:
121
stream = container.add_stream(video_codec, rate=fps)
0 commit comments