Skip to content

Tensorflow Implementation of Multimodal Style Transfer via Graph Cuts

Notifications You must be signed in to change notification settings

georgy95/mst-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multimodal Style Transfer via Graph Cuts Implementation in TF 2.0.0a

Paper implementation of Multimodal Style Transfer via Graph Cuts

Results

Open Test.ipynb to run your own tests.

alpha=1

Image Image

Training

To start local training (after building the image datapath structure), simply run:

cd trainer
python train.py

or see below

Data Structure

To load the data we assume the following structure, both locally and remotely:

trainer
-- data
  -- content
    -- images_*.png
  -- style
    -- images_*.png

Local

First, create the following project structure locally.

git clone repo
cd repo/trainer/
mkdir data
cd data/
mkdir content
mkdir style

Then simply run the shell script to start training

sh train.sh local

Remote - GCP

Edit train.sh to specify your datapath=gs://path_to_data_dir/ variable.

sh train.sh remote

Transfer Learning

If you wish to use pretrained decoder weights, specify the path to them using weights parameter in the train.sh file.

About

Tensorflow Implementation of Multimodal Style Transfer via Graph Cuts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published