Open-Sora icon indicating copy to clipboard operation
Open-Sora copied to clipboard

视频分割偏移问题

Open boanz opened this issue 1 year ago • 5 comments

发现用“python -m tools.scene_cut.cut ${ROOT_META}/xxx.csv --save_dir ${ROOT_CLIPS}”,进行视频分割的时候,分割出来的片段存在偏移。而直接使用scenedetect的split_video_ffmpeg方法,则没有问题。 上述问题会导致镜头不完整,或者跨镜头,不知道这个对训练会不会有什么影响。

boanz avatar Jul 02 '24 06:07 boanz

Thanks for raising your concern. Can @zhengzangw please take a look to see if any action is needed? Thanks!

JThh avatar Jul 08 '24 21:07 JThh

Can @xyupeng please take a look of this?

zhengzangw avatar Jul 09 '24 07:07 zhengzangw

Hi @boanz ,

Thank you for pointing out the problem. Yes, the previous code really causes inaccuracy up to 0.5 sec, which is due to fps=1. I have updated the code to set fps=100, which means it will round to two decimal places (i.e., 0.01 sec) and will be much more accurate. image

xyupeng avatar Jul 09 '24 07:07 xyupeng

has it changed from the original scenedetect?

henbucuoshanghai avatar Jul 11 '24 13:07 henbucuoshanghai

This issue is stale because it has been open for 7 days with no activity.

github-actions[bot] avatar Jul 19 '24 01:07 github-actions[bot]

The lastest scene_cut has fixed this problem.

zhengzangw avatar Aug 07 '24 05:08 zhengzangw