Git Product home page Git Product logo

capsgan-colorization's Introduction

Refined Image Colorization using Capsule Generative Adversarial Networks

Code for the paper

Installation Guide

Python 3.6+ is needed to be installed on the system. After installing Python, the following dependencies are needed to be installed

  • Numpy
  • Tensorflow (1.2)
  • Keras
  • Imageio
  • Easydict
  • Pillow

a dataset will be needed to be downloaded. The used dataset in this project is Linnaeus 5

User Guide

After the project environment is successfully ready and the dataset is downloaded, The training options in the main script should be changed accordingly.

  • dataset: Name of the dataset folder created
  • dataset_path: The root folder containing the dataset folder
  • checkpoints_path: The folder where the model will be saved/loaded as well as the testing output will be saved
  • mode: set to 0 for training and 1 for testing
  • batch_size: Training batch size
  • epochs: The number of desired Epochs
  • lr: Learning rate
  • lr_decay: Learning rate decay
  • save_interval: The number of steps before saving the model
  • sample_interval: The number of steps before doing random testing samples
  • sample_size: Sample test size

To start training, change the mode to 0 as mentioned above and execute the main.py script and make sure the training images are located in the training folder as well as the testing images located in the testing folder as mentioned in the installation guide

To start testing, change the mode to 1 as mentioned above and execute the main.py script and make sure the testing images are located in the testing folder as mentioned in the installation guide. The testing process output should look similar to the image below

capsgan-colorization's People

Contributors

ragrag avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.