Skip to content

minkyu-choi04/Perceptual_Losses_for_Real_Time_Style_Transfer

Repository files navigation

Perceptual Losses for Real Time Style Transfer

Pytorch reproduction of the paper "Perceptual Losses for Real Time Style Transfer". Some improvements are made by adopting ideas from "A Learned Representation for Artistic Style"

  1. Zero-padding is replaced with mirror-padding.
  2. Transposed convolution is replaced with up-sampling and covolution.

Dependencies

python 3.6.5
pytorch 0.4.1.post2

Dataset

The residual network is trained with LSUN. The pre-trained VGG-net provided by pytorch is used.

Usage

python main.py

You can run your own experiment by giving parameters manually.

Results

Original content image (Cape Manzamo, Okinawa, Japan):

Original Content Image

Style image:

Style Image

Resulting image:

Resulting Image

Samples from LSUN dataset:

Original Images Style Image Style Image Style Image
Resulting Images Style Image Style Image Style Image

Releases

No releases published

Packages

No packages published

Languages