• Stars
    star
    552
  • Rank 80,042 (Top 2 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Automatic coloring and shading of manga-style lineart, using Tensorflow + cGANs

deepcolor

Automatic coloring and shading of manga-style lineart, using Tensorflow + cGANs

Read the writeup: http://kvfrans.com/coloring-and-shading-line-art-automatically-through-conditional-gans/

Try the demo: http://color.kvfrans.com

Setup

Prereqs

- Python 2.7, numpy
- Tensorflow 0.12
- OpenCV

Running it

  1. make a folder called "results"
  2. make a folder called "imgs"
  3. Fill the "imgs" folder with your own .jpg images, or run "download_images.py" to download from Safebooru.
  4. Run "python main.py train". I trained for ~20 epochs, taking about 16 hours on one GPU.
  5. To sample, run "python main.py sample"
  6. To start the server, run "python server.py". It will host on port 8000.

Pre-trained

Get the pretrained model: https://drive.google.com/file/d/0BydPPLNieijIdDlUYWxhelEwRnM/view?usp=sharing

Folder structure should go:

main.py
server.py
checkpoint/
    tr/
        checkpoint
        model-1101500.index
        model-1101500.data-00000-of-00001
        model-1101500.meta

Code based off this pix2pix implementation.

More Repositories

1

variational-autoencoder

generate MNIST using a Variational Autoencoder
Python
704
star
2

jax-diffusion-transformer

Implementation of Diffusion Transformer (DiT) in JAX
Python
235
star
3

generative-adversial

image generation via GANs
Python
211
star
4

feature-visualization

tensorflow example of visualizing features from a convnet
Python
151
star
5

openai-cartpole

random search, hill climbing, policy gradient
Python
138
star
6

clipdraw

code for CLIPDraw
Jupyter Notebook
123
star
7

parallel-trpo

A parallel version of Trust Region Policy Optimization
Python
65
star
8

powderworld

Code for Powderworld: A Platform for Understanding Generalization via Rich Task Distributions
Python
63
star
9

jax-flow

Flow-matching algorithms in JAX
Python
56
star
10

draw-color

a DRAW model for colored images in tensorflow
Python
49
star
11

fre

Code for "Unsupervised Zero-Shot RL via Functional Reward Representations"
Python
47
star
12

rlbase_stable

Python
37
star
13

cs224-solutions

code for cs224 problem sets
Python
28
star
14

twitch

generate realistic looking twitch chat
TypeScript
28
star
15

Easy21-RL

solutions to David Silver's RL course project Easy21
Python
19
star
16

learn

16
star
17

jax-vqvae-vqgan

JAX implementation of VQVAE/VQGAN autoencoders (+FSQ)
Python
16
star
18

Unlimited-Bullet-Festival

A scripting language for bullets in video games
C#
14
star
19

generative-model

Brief Exploration of Generative Models
Jupyter Notebook
10
star
20

touhou

engine for web-based bullet dodging game
JavaScript
9
star
21

neural-style

simplified version of neural art
Lua
8
star
22

latent-attention

Attention on the latent vector for a VAE
Python
8
star
23

jax-fid-parallel

Frechet inception distance (FID) evaluation in JAX
Python
7
star
24

kgpt

Python
6
star
25

HackChair

JavaScript
4
star
26

peer-to-peer-mmo

a peer to peer solution to networking for Javascript in-browser games
JavaScript
4
star
27

inpainting

aar project
Python
4
star
28

BaseBoost

a base for building Boost to link C++ with python
CMake
3
star
29

suwacount

count your youtube views
JavaScript
3
star
30

RealTimePixi

a real-time action game in Javascript and Node.js.
CSS
3
star
31

Tensorflow

examples and stuff from my tensorflow adventure
Python
2
star
32

oceanworld-qd

code for "Quality Diversity: Evolving Ocean Creatures"
Python
2
star
33

TWITCH-CHAT-VS-THE-WORLD

HTML5 Realtime Game integrating Twitch Chat
JavaScript
2
star
34

Communication

multi-agent communication
Python
2
star
35

OSU-HTML5-via-Unity

C#
2
star
36

LeagueRemote

play League of Legends from iPhone or Web Browser
JavaScript
2
star
37

Proc

cellular automata stuff
Lua
2
star
38

large-generation

cppn, gan, vae to generate bigger images
Python
2
star
39

MetaTwitch

analyses twitch chat
JavaScript
1
star
40

Website

1
star
41

Kano

Feedforward Neural network library for NPM that can handle backprop
JavaScript
1
star
42

2hu

C#
1
star
43

rl-qlearn

Varieties of Q-Learning flavors in Tensorflow
Python
1
star
44

rl-imagegen

Image generation through non-differentiable methods
Python
1
star
45

TacoPlugin

1
star
46

DECA

JavaScript
1
star
47

6073-game4

ShaderLab
1
star
48

The-Goose-Game

Objective-C
1
star
49

gamdev-workshop

@gunnhacks
HTML
1
star
50

TacoPlugins

1
star