All Projects → DmitryUlyanov → Online Neural Doodle

DmitryUlyanov / Online Neural Doodle

Feedforward neural doodle

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to Online Neural Doodle

Tensorflow Style Transfer
A simple, concise tensorflow implementation of style transfer (neural style)
Stars: ✭ 278 (+51.91%)
Mutual labels:  online, neural-style
Neural Style Audio Torch
Torch implementation for audio neural style.
Stars: ✭ 130 (-28.96%)
Mutual labels:  torch, neural-style
Torch Models
Stars: ✭ 65 (-64.48%)
Mutual labels:  torch, neural-style
Neural-Zoom
Infinite Zoom For Style Transfer
Stars: ✭ 34 (-81.42%)
Mutual labels:  torch, neural-style
Fast Neural Doodle
Faster neural doodle
Stars: ✭ 339 (+85.25%)
Mutual labels:  torch, neural-style
Torch2coreml
Torch7 -> CoreML
Stars: ✭ 363 (+98.36%)
Mutual labels:  torch, neural-style
Texture nets
Code for "Texture Networks: Feed-forward Synthesis of Textures and Stylized Images" paper.
Stars: ✭ 1,147 (+526.78%)
Mutual labels:  torch, neural-style
Prediction Flow
Deep-Learning based CTR models implemented by PyTorch
Stars: ✭ 138 (-24.59%)
Mutual labels:  torch
Imaginary Teleprompter
Professional grade, free software, teleprompter app.
Stars: ✭ 157 (-14.21%)
Mutual labels:  online
Torchsample
High-Level Training, Data Augmentation, and Utilities for Pytorch
Stars: ✭ 1,731 (+845.9%)
Mutual labels:  torch
Cyclegan
Software that can generate photos from paintings, turn horses into zebras, perform style transfer, and more.
Stars: ✭ 10,933 (+5874.32%)
Mutual labels:  torch
Synthesize3dviadepthorsil
[CVPR 2017] Generation and reconstruction of 3D shapes via modeling multi-view depth maps or silhouettes
Stars: ✭ 141 (-22.95%)
Mutual labels:  torch
Tensorflowprojects
Deep learning using tensorflow
Stars: ✭ 167 (-8.74%)
Mutual labels:  neural-style
Snapshotensemble
Snapshot Ensembles in Torch (Snapshot Ensembles: Train 1, Get M for Free)
Stars: ✭ 173 (-5.46%)
Mutual labels:  torch
Yolo Face With Landmark
yoloface大礼包 使用pytroch实现的基于yolov3的轻量级人脸检测(包含关键点)
Stars: ✭ 180 (-1.64%)
Mutual labels:  torch
Torch Dct
DCT (discrete cosine transform) functions for pytorch
Stars: ✭ 173 (-5.46%)
Mutual labels:  torch
Dockerfiles
Deep Learning Dockerfiles
Stars: ✭ 150 (-18.03%)
Mutual labels:  torch
Ganspapercollection
Stars: ✭ 130 (-28.96%)
Mutual labels:  torch
Neural Tools
Tools made for usage alongside artistic style transfer projects
Stars: ✭ 150 (-18.03%)
Mutual labels:  neural-style
Semantic3dnet
Point cloud semantic segmentation via Deep 3D Convolutional Neural Network
Stars: ✭ 170 (-7.1%)
Mutual labels:  torch

Feed-forward neural doodle

This repository merges fast-neural-doodle and and Texture Networks. Read the blog post for the details on the doodle algorithm and the paper to learn more about texture networks.

You can find an online demo at likemo.net.

Prerequisites

A good guide on installation can be found here.

You also need to download VGG-19 recognition network.

cd data/pretrained && bash download_models.sh && cd ../..

Generate doodles for training

Use diamond square algorithm to produce a random doodle and store it in hdf5 database.

  python generate.py --n_jobs 30 --n_colors 4 --style_image data/starry/style.png --style_mask data/starry/style_mask.png --out_hdf5 data/starry/gen_doodles.hdf5

Learn a network

Here is an example for starry_night used in the demo.

CUDA_VISIBLE_DEVICES=0 th feedforward_neural_doodle.lua -model_name skip_noise_4 -masks_hdf5 data/starry/gen_doodles.hdf5 -batch_size 4 -num_mask_noise_times 0 -num_noise_channels 0 -learning_rate 1e-1 -half false

All the parameters are explained in the code.

Stylize the doodle

After the net is trained you can process any doodle with

python apply.py --colors data/starry/gen_doodles.hdf5colors.npy --target_mask data/starry/style_mask.png --model data/out/starry_night.t7

A pretrained starry_night net is there in pretrained folder. You can try it with

python apply.py --colors pretrained/gen_doodles.hdf5colors.npy --target_mask data/starry/style_mask.png --model pretrained/starry_night.t7

Hardware

  • The code was tested with 12GB NVIDIA Tesla K40m GPU and Ubuntu 14.04.

Credits

The code is based on Justin Johnson's code for artistic style.

Uses buckinha/DiamondSquare as is.

Work is supported by Yandex and Skoltech.

Citation

If you use this code for your research please cite this repository.

@misc{Ulyanov2016onlinedoodle,
  author = {Ulyanov, Dmitry},
  title = {Online Neural Doodle},
  year = {2016},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/DmitryUlyanov/online-neural-doodle}},
}
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].