hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
21.76k stars 2.11k forks source link

fix:multi-fps bug. #444

Closed shu-le closed 3 months ago

shu-le commented 3 months ago

For multi-fps training, when extracting frames according to a certain frame_interval, the fps of the extracted frames actually changes. So the fps should be:

video_fps = video_fps // self.frame_interval

FrankLeeeee commented 3 months ago

Thanks @shu-le for your contribution :)