This is not actually an issue for this repository I'm sorry. But I'm wondering if you can help
AIaesthetic opened this issue · comments
I managed to create .flo list and I can visualize each .flo file thanks to http://vision.middlebury.edu/ . But I'm aiming to visualize the whole .flo list at once, not just each individual .flo file at a time. any help?
Thanks in advance
It sounds like that should be a simple case of "run the visualization app for every .flo file". What's your goal? A flow video?
It's a simple case. But, I have like a hundred .flo files. Won't be there a simpler way to do it? same as running Flownet2 on frames list?
Yes, I'd like to make a video from the output .flo files.
I don't know the exact usage of the visualization program, but let's assume it is in the form of:
$ ./visualize input.flo output.png
Let's also assume that you have a bunch of .flo
files:
flow_00000.flo
flow_00001.flo
...
flow_00795.flo
In this case you could run a loop to convert your flows...
ls flow*flo | while read flowfile; do
colorfile=`basename $flowfile .flo`.png;
./visualize $flowfile $colorfile;
done
...which would give you color files...
flow_00000.png
flow_00001.png
...
flow_00795.png
...which in turn can be rendered into a video using e.g. ffmpeg
(more ffmpeg
options e.g. here):
ffmpeg -f image2 -i flow_%05d.png -q:v 0 flow_video.avi
Is this what you want? It would be much easier than rewriting the visualizer for multiple inputs.
it works. I love you