GithubHelp home page GithubHelp logo

floydhub / deep-photo-styletransfer Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 1.55 MB

Jupyter Notebook to train photorealistic style transfer

License: MIT License

Cuda 27.38% Python 21.03% Lua 50.70% Makefile 0.89%

deep-photo-styletransfer's Introduction

deep-photo-styletransfer

Jupyter Notebook to train photorealistic style transfer

This is an adaptation of https://github.com/martinbenson/deep-photo-styletransfer, which is derived from https://github.com/luanfujun/deep-photo-styletransfer

Steps to run style transfer

$ git clone https://github.com/floydhub/deep-photo-styletransfer.git deep-photo-styletransfer
$ cd deep-photo-styletransfer

# Ensure you have floyd-cli installed and you are logged into the FloydHub

$ floyd init deep-photo-styletransfer
$ floyd run --gpu --env torch --mode jupyter --data floydhub/datasets/vgg-ilsvrc-19-layers/1:models

This will spin up a Jupyter notebook with Torch preinstalled and the VGGNet model mounted at /models

Steps to run the model

# Install the pre-requisites
$ !sudo apt-get install protobuf-compiler -y

# Install Lua dependencies
$ !luarocks install csvigo && luarocks install loadcaffe

# Create symlinks from the mounted data to the place the code expects it to be at
$ !cp --symbolic-link /models/* ./models

# Run the model
$ !python3 deep_photo.py -content_image examples/waterfront.png -content_seg examples/waterfront_seg.png -style_image examples/city_night.png -style_seg examples/city_night_seg.png -laplacian examples/waterfront700.csv -output_image examples/waterfront_city_night.png -image_size 700 -gpu 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.