• Stars
    star
    320
  • Rank 131,126 (Top 3 %)
  • Language
    Python
  • Created about 8 years ago
  • Updated over 7 years ago

Reviews

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

Repository Details

A deep learning approach to colorizing images

Colorizing Images

UPDATE - Completely cleaning up code for Tensorflow 1.0 and retraining models.

A deep learning approach to colorizing images, specifically for Pokemon.

The current model was trained on screenshots taken from Pokemon Silver, Crystal, and Diamond, then tested on Pokemon Blue Version. Sample results below.

Basic Training Usage

The files in the images/train folder are as follows:

Evaluating on Images

I've included a trained model in the models/ directory that you can run your own images on. You can either run the model on one image or a folder of images. For one image, run eval_one.py and pass it the model and the image as parameters. To run it on multiple images, run eval.py and pass it the model and the folder to the images. eval.py will save your images in the output folder, where as eval_one.py will save them in the current directory. Examples:

Training your own data

There are scripts included to help create your own dataset, which is desirable because the amount of data needed to obtain good results is a good amount. The results above were trained on about 50,000 images.

The easiest method to obtain images is to extract them from Youtube walkthrough videos of different games. Given that you have a folder with videos

videos/

video_1.mp4

video_2.mp4

...

use extract_frames.sh to extract images from each video. Just pass it the folder containing images.

Depending on if the video had a border around the game, you may need to use crop_images.py to crop out the border. There are comments in the script you can uncomment to view the image before it crops all of them to be sure the cropping is correct.

More Repositories

1

Compute-Features

Computes features for images using various pretrained Tensorflow models
Python
313
star
2

Underwater-Color-Correction

Using GANs to correct color distortion in underwater images.
Python
290
star
3

cWGANs

Conditional Wasserstein GANs
Python
71
star
4

Improved-Wasserstein-GAN

Implementation of the improved WGAN in Tensorflow
Python
19
star
5

deepixel

A deep learning approach to depixelate an image using tensorflow
Python
18
star
6

LSGANs-Tensorflow

Least Squares GANs in Tensorflow
Python
17
star
7

Wasserstein-GAN-Tensorflow

Implementation of Wasserstein GAN in Tensorflow
Python
16
star
8

Autoencoder

An autoencoder using a convolutional neural network with Tensorflow
Python
11
star
9

Colorizing-Images-Using-Adversarial-Networks

Colorizing images using an adversarial network approach.
TeX
11
star
10

Day-Night-Classification

Day and night image classification using a Support Vector Machine and Neural Network
Python
5
star
11

EBGAN-Tensorflow

Energy-Based Generative Adversarial Networks in Tensorflow
Python
4
star
12

tensorflow_ops

A small library of common functions to use in Tensorflow
Python
4
star
13

ICGANs

Implementation of Invertible Conditional GANs for Image Editing
Python
4
star
14

AstroGAN

Generating galaxies using GANs
Python
3
star
15

Adversarial-Agent

Imitation learning using GANs for GTAV
Python
2
star
16

UGAN-V2

Unpaired image to image translation.
Python
2
star
17

BB84-Quantum-Key-Exchange

An implementation of the BB84 Quantum Key Exchange in Java
Java
2
star
18

simGAN

Implementation of simGAN
Python
1
star
19

PlantMonitor

Monitoring my plant with various sensors
Python
1
star
20

Tensorflow-Operations

Collection of Tensorflow operations I commonly use
Python
1
star
21

DCGANs-Tensorflow

Implementation of DCGANs in Tensorflow
Python
1
star
22

DistorterGAN

Distorts images to make them appear underwater.
Python
1
star
23

pokemon

Scripts and stuff for machine learning on pokemon
Python
1
star
24

Classification-Tool

Simple binary labeling system in Python
Python
1
star
25

DRAGAN

Implementation of the How to Train your DRAGAN
1
star
26

MOOC

Massive Open Online Courses
1
star