Neural Style Transfer with Python

Apply pre-trained model style on to an input image to blend two image so that the output would look like the original image but with the style of the reference model.

Hau transferred

Hau transferred

Usage

  • Single image:

$ python neural_style_transfer_single_image.py -m models/eccv16/starry_night.t7 -i image_path

  • All models for a single image:

$ python neural_style_transfer_all_models.py -m models -i image_path

  • Live webcam (slow):

$ python neural_style_transfer_video.py -m models

Dependencies

  • OpenCV2
  • imutils