Skip to content

An implementation of "Perceptual Losses for Real-Time Style Transfer and Super-Resolution" by Johonson et al. for CSCI 1290: Computational Photography at Brown University.

dcharatan/neural-style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSCI 1290 Final Project: Neural Style

James Tompkin (Mosaic Style) James Tompkin (Great Wave Style)
Mosaic James Wave James

For our final project, we implemented style transfer based on Perceptual Losses for Real-Time Style Transfer and Super-Resolution by Justin Johnson, Alexandre Alahi and Fei-Fei Li and the fast-neural-style-pytorch repository.

Running the Code

All of the scripts can be found in source/script_modules. To run a script, cd into the project root directory and run it as a Python module. For example:

python3 -m source.script_modules.train_model --file_name <settings.json>

Several settings files can be found in the settings folder.

Project Setup

Creating a Virtual Environment

To create a virtual environment, run python3 -m venv venv. Then, do source venv/bin/activate (or equivalent) and pip3 install -r requirements.txt to install the project's dependencies.

Acknowledgements

Style Images

  • The style action.jpg is from Pinterest user Gene Miller. It can be found here.
  • The styles mosaic.jpg and udnie.jpg are from the fast-neural-style-pytorch repository.
  • The style elbe.jpg is a painting of Dresden by Bernardo Bellotto.
  • The style cafe.jpg is Café Terrace at Night by Vincent Van Gogh.
  • The style wave.jpg is The Great Wave off Kanagawa by Katsushika Hokusai.
  • The style stairs.jpg is Nude Descending a Staircase, No. 2 by Marcel Duchamp.
  • The style haring.jpg is Retrospect by Keith Haring.
  • The style sitter.jpg is Juan Legua by Juan Gris.

About

An implementation of "Perceptual Losses for Real-Time Style Transfer and Super-Resolution" by Johonson et al. for CSCI 1290: Computational Photography at Brown University.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages