Seite 1 von 1

Super-SloMo

Verfasst: Sa 06 Jul, 2019 00:33
von roki100


=============================
Instructions:
=============================
Step 1: Install Anaconda (https://www.anaconda.com/distribution/)

Step 2: Go here: https://github.com/avinashpaliwal/Super-SloMo
Click "Clone or Download" then "Download Zip"

Step 3: Extract the zip to a folder with an easy location with no spaces. (e.g. SuperSloMo)

Step 4: Download the pre-trained model here:


Place in SuperSloMo directory.

Step 5: Download ffmpeg from here: https://ffmpeg.zeranoe.com/builds/
Choose correct options for system & stable.
Unzip and rename to a simple name "ffmpeg" and place in the same parent directory as others.

Step 6: Open an Anaconda prompt. (nur für Windows User. MacOS/Linux User, einfach Terminal starten und unten genannten Befehl ausführen )
Use this link to generate the correct command: https://pytorch.org/get-started/locally/
e.g. conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
And paste into the Anaconda prompt.

Step 7: Make an "Input" folder and place the footage you want to increase the framerate of inside it. Also make an "Output" folder for the finished conversions.

Step 8: Use "cd" in Anaconda to change the path to the folder that contains "video_to_slomo.py" & then run the process with the following command and arguments:

python video_to_slomo.py --ffmpeg C:\Users\Gerald\SloMo\ffmpeg\bin\ --video C:\Users\Gerald\SloMo\Input\Umbrella.mp4 --sf 4 --checkpoint C:\Users\Gerald\SloMo\SuperSloMo\SuperSloMo.ckpt --fps 120 --output C:\Users\Gerald\SloMo\Output\Umbrella120.mp4 --batch_size 1

Mac/Linux User:
cd Super-SloMo-master
und z.B.
python video_to_slomo.py --ffmpeg ffmpeg\bin\ --video /Users/***/Super-SloMo-master/Input/BMPCCProRes.mov --sf 4 --checkpoint SuperSloMo.ckpt --fps 120 --output /Users/***/Super-SloMo-master/Output/BMPPCProResSloMo.mov --batch_size 1

(Prozess dauert aber sehr lange)

Change the locations above to match the paths on your computer.
sf = multiple of frame rate
fps = target frame rate
batch_size = how quickly it will run/how much of the system will be used. (1 is lowest)

Step 9: Import the finished video into video editing software and lower the speed by the corresponding amount. For sf 4, set speed to 25%, etc.