All Projects → dwango → neural_style_synthesizer

dwango / neural_style_synthesizer

Licence: GPL-3.0 license
No description or website provided.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to neural style synthesizer

CycleGAN-Music-Style-Transfer-Refactorization
Symbolic Music Genre Transfer with CycleGAN - Refactorization
Stars: ✭ 28 (+86.67%)
Mutual labels:  style-transfer
efficient softmax
BlackOut and Adaptive Softmax for language models by Chainer
Stars: ✭ 12 (-20%)
Mutual labels:  chainer
graph-nvp
GraphNVP: An Invertible Flow Model for Generating Molecular Graphs
Stars: ✭ 69 (+360%)
Mutual labels:  chainer
rudetoxifier
Code and data of "Methods for Detoxification of Texts for the Russian Language" paper
Stars: ✭ 30 (+100%)
Mutual labels:  style-transfer
kaggle-champs-scalar-coupling
19th place solution in "Predicting Molecular Properties"
Stars: ✭ 26 (+73.33%)
Mutual labels:  chainer
sRender
Facial Sketch Render, ICASSP 2021
Stars: ✭ 20 (+33.33%)
Mutual labels:  style-transfer
Houdini-Plugin-for-Tensorflow-Smoke-Stylization
Tensorflow implementation of Style Transfer for Smoke Simulations. Created as part of ETH Zurich Student Summer Research Fellowship
Stars: ✭ 33 (+120%)
Mutual labels:  style-transfer
ada-conv-pytorch
No description or website provided.
Stars: ✭ 46 (+206.67%)
Mutual labels:  style-transfer
dreamsnap
Real life through the eyes of an artist
Stars: ✭ 16 (+6.67%)
Mutual labels:  style-transfer
CS231n
PyTorch/Tensorflow solutions for Stanford's CS231n: "CNNs for Visual Recognition"
Stars: ✭ 47 (+213.33%)
Mutual labels:  style-transfer
SANET
Arbitrary Style Transfer with Style-Attentional Networks
Stars: ✭ 105 (+600%)
Mutual labels:  style-transfer
lda2vec
Mixing Dirichlet Topic Models and Word Embeddings to Make lda2vec from this paper https://arxiv.org/abs/1605.02019
Stars: ✭ 27 (+80%)
Mutual labels:  chainer
chainer-ADDA
Adversarial Discriminative Domain Adaptation in Chainer
Stars: ✭ 24 (+60%)
Mutual labels:  chainer
CartoonGAN-tensorflow
Simple code implement the paper of CartoonGAN(CVPR2018)
Stars: ✭ 14 (-6.67%)
Mutual labels:  style-transfer
Text-to-Speech-Landscape
No description or website provided.
Stars: ✭ 31 (+106.67%)
Mutual labels:  style-transfer
ganslate
Simple and extensible GAN image-to-image translation framework. Supports natural and medical images.
Stars: ✭ 17 (+13.33%)
Mutual labels:  style-transfer
DSTC6-End-to-End-Conversation-Modeling
DSTC6: End-to-End Conversation Modeling Track
Stars: ✭ 56 (+273.33%)
Mutual labels:  chainer
CoMoGAN
CoMoGAN: continuous model-guided image-to-image translation. CVPR 2021 oral.
Stars: ✭ 139 (+826.67%)
Mutual labels:  style-transfer
awesome style transfer
The style transfer paper collection in International CV conference
Stars: ✭ 42 (+180%)
Mutual labels:  style-transfer
groove2groove
Code for "Groove2Groove: One-Shot Music Style Transfer with Supervision from Synthetic Data"
Stars: ✭ 88 (+486.67%)
Mutual labels:  style-transfer

neural_style_synthesizer

INSTALL

The model files of neural networks are not contained in this repository. You can get them from nin_imagenet.caffemodel and VGG_ILSVRC_16_layers.caffemodel.

Dependent libraries are installed with the following script.

pip install numpy
pip install -r requirements.txt

RUN

Whole style transfer

You can transfer whole patch from one to another.

with CPU

python bin/convert_image_multi.py \
  --modelpath=./VGG_ILSVRC_16_layers.caffemodel \
  --iteration=100 \
  --gpu=-1 \
  --xsplit=1 --ysplit=1 --resize=300 \
  input.png \
  style.png \
  --output_image=./converted.png

with GPU

python bin/convert_image_multi.py \
  --modelpath=./VGG_ILSVRC_16_layers.caffemodel \
  --iteration=100 \
  --gpu=0 \
  --xsplit=1 --ysplit=1 --resize=300 \
  input.png \
  style.png \
  --output_image=./converted.png

Partial style transfer

Choose optimal patches from style image and transfer them to another image. Split style image to 2x2

python bin/convert_image_multi.py \
  --modelpath=./VGG_ILSVRC_16_layers.caffemodel \
  --iteration=100 \
  --gpu=0 \
  --xsplit=2 --ysplit=2 --resize=300 \
  --model=vgg_nopad\
  input.png \
  style.png \
  --output_image=./converted_optimal_2x2.png

Style transferred video

Tranfer style on video frame using last frame's result.

python bin/convert_video.py \
  --iteration=100 --model=vgg \
  video.mp4 \
  style.png \
  output_directory

Then you can find the style transferred video at output_directory/out.avi after 100 x frame times calculation.

Optimal Blended Texture Transfer

Please see https://nico-opendata.jp/en/casestudy/neural_style_synthesizer/index.html for technical details.

python bin/convert_image_multistyle.py \
  --model=vgg_nopad \
  --iteration=100 \
  --gpu=3 --xsplit=1 --ysplit=1 --resize=200 \
  /path/to/input/file \
  /path/to/directory/contains/multiple/refarence/files \
  --debug --out_dir=/path/of/output
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].