Skip to content

Instantly share code, notes, and snippets.

@IzumiSatoshi
IzumiSatoshi / video_frames_comparison.py
Created November 4, 2022 07:16
Output horizontally merged mp4 from two directories containing video frames.
# !!!IMPORTANT!!! The output must be encoded once, e.g. with a video editor, as it may contain errors that make it unplayable as it is.
import cv2
import glob
#### change here
left_frames_dir_path ="C:/Users/81809/Desktop/Projects/nicolai_fewshot/Few-Shot-Patch-Based-Training/logs/1_gen/res__P_disco1010/0020000"
right_frames_dir_path = "C:/Users/81809/Desktop/Projects/nicolai_fewshot/Few-Shot-Patch-Based-Training/logs/1_gen/input_filtered"
fps = 24
output_video_path = "woman_dance_greg2.mp4" #mp4 only
input_frames_height = 512
@IzumiSatoshi
IzumiSatoshi / fspbt_org.ipynb
Created October 31, 2022 09:34
FSPBT_org.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.