Skip to content

PyTorch implementation of "A Learned Representation For Artistic Style"

Notifications You must be signed in to change notification settings

tyui592/A_Learned_Representation_For_Artistic_Style

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Learned Representation For Artistic Style

sample_image

Usage

Dataset

  • Content: MSCOCO 2014 train
  • Style: ./imgs/style (manually collected images) style_images
    • The style_index starts in order from the top left (0 ~ 15).
  • Trained Model Weights: Link

Example Scripts

# Model Training.
python main.py --mode 'train' \
    --style_path "./imgs/style/" \
    --content_path  "/path/to/content/dataset/"
    
# Model Evaluation.
python main.py --model 'eval' \
    --content_path "./imgs/gentlecat.png" \
    --style_index -1 (0~15 for a specific style, or -1 for all styles)