Skip to content

yashgugale/PyTorch-Style-Transfer-On-Video

Repository files navigation

PyTorch-Style-Transfer-On-Video

A. Dependencies:

  1. OpenCV 3
  2. PyTorch 1.0
  3. Matplotlib
  4. Numpy
  5. PIL

B. Steps to run:

  1. Install all the dependencies on your computer. (Use Anaconda preferably to install all the necessary libraries and packages)
  2. Open Anaconda Command Prompt
  3. Change directory (cd) to the location where the python file is present (here, "style transfer on video.py")
  4. Make sure to put the input style images into the directory: "input_style_frames" and name the style images as "style_1.jpg", "style_2.jpg", and so on. If you are using a different directory, you may need to change the folder names in the code.
  5. Enter the following command in the Anaconda Terminal: python "python-file.py" "path-to-input-video" For Ex: python "style transfer on video.py" input_video\sample_video.mp4
  6. The program will run successfully and you will see the desired output processed video in the folder: "output_processed_video".
  7. Open the video and check the result.

C. Video Credits:

All over in 10 seconds - Ian Rushton. Link : https://www.youtube.com/watch?v=rUWxSEwctFU

Cheers!

About

Apply style transfer on video

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages