FuSta icon indicating copy to clipboard operation
FuSta copied to clipboard

Starting value for image input?

Open stefanklut opened this issue 4 years ago • 3 comments

Hey there, awesome implementation. I am trying to run the code to see how it performs, however I have a quick question on the input folder structure. In the code there is a check if the input image name is 0 and a check if it is 1. Which of these values is intended as the starting value of the video folder?

stefanklut avatar Apr 13 '21 11:04 stefanklut

Hi @stefanklut , The implementation uses glob to grab all pngs in a folder. So no need to worry about the indexing of the first frame I think. By the way, we use ffmpeg to extract video into frames. ffmpeg -i xxx.mp4 %05d.png The first frame will be named 00001.png.

alex04072000 avatar Apr 14 '21 10:04 alex04072000

Thank you, the ffmpeg info was just what I needed. However, I do think filename matters since at line 235 on run_FuSta.py there is a check if the filename is 0.

stefanklut avatar Apr 14 '21 10:04 stefanklut

That number is related to the smoothed homography matrices and flows generate by CVPR2020CODE_yulunliu_modified. The if == 0 part can be ignored I think.

alex04072000 avatar Apr 14 '21 10:04 alex04072000