资源算法Lifeifei-fast-neural-style

Lifeifei-fast-neural-style

2020-02-21 | |  49 |   0 |   0

The simple pytorch implementation of fast-neural-style

Paper: Perceptual Losses for Real-Time Style Transfer and Super-Resolution

train dataset : COCO 2014 Training images dataset [80K/13GB] (download).

Prerequisites

pip install requirements.txt

Usage

If you want to visualize the training process , you need to type python -m visdom.server to open visdom.

train examples:

CUDA_VISIBLE_DEVICES=3,5 python neural_style/neural_style.py train --dataset  ./data --style-image ./images/style-images/losses.jpg --save-model-dir ./my_models  --batch-size 8 --epochs 1 --cuda 1 --log-interval 5 --image-size 256

test examples:

python neural_style/neural_style.py eval --content-image ./images/content-images/r1.jpg  --model ./my_models/wave.pth --output-image wave_r1.jpg  --cuda 1

Result


上一篇:tf_fast_neural_style

下一篇:fast-neural-style-gui

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...