Skip to content

Instantly share code, notes, and snippets.

@smeshny
Last active December 19, 2020 00:27
Show Gist options
  • Save smeshny/8159bc7d4c7fc3bdb4728e1cf717ed5a to your computer and use it in GitHub Desktop.
Save smeshny/8159bc7d4c7fc3bdb4728e1cf717ed5a to your computer and use it in GitHub Desktop.
Dynamic sky replacement in video with Python and AI (Epic!) gists
git clone https://github.com/jiupinjia/SkyAR.git
cd SkyAR
...
"datadir": "./test_videos/wakeboard.mp4",
...
pip install -r Requirements.txt
self.video_writer = cv2.VideoWriter('demo.mp4', cv2.VideoWriter_fourcc(*'MP4V'),
20.0, (args.out_size_w, args.out_size_h))
python3 -m venv skyar
source ./skyar/bin/activate
python skymagic.py --path ./config/config-annarbor-supermoon.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment