Skip to content

Unsupervised image color enhancement using implementation of CycleGAN-tensorflow

Notifications You must be signed in to change notification settings

JunhoJeon/unsupervised-color-enhance

 
 

Repository files navigation

Unsupervised Color Enhancement

Tensorflow implementation for learning an image-to-image color enhancement using CycleGAN structure (unsupervised).

For image example: color_enhance

It learns color affine transform function for each pixel in CIE L*a*b*. Network structure for transformation network looks: affine_structure

This implementation is based on CycleGAN-tensorflow of xhujoy (https://github.com/xhujoy). This repository contains train and test codes for reproduce. Pretrained network model and dataset will be distributed soon.


Prerequisites

  • tensorflow r1.0 or higher version
  • numpy 1.11.0
  • scipy 0.17.0
  • pillow 3.3.0

Getting Started

Installation

git clone https://github.com/JunhoJeon/unsupervised-color-enhance
cd CycleGAN-tensorflow

Training and Test Details

To train a model,

CUDA_VISIBLE_DEVICES=0 python main.py --dataset_dir=/path/to/data/

Models are saved to ./checkpoints/ (can be changed by passing --checkpoint_dir=your_dir).

To test the model,

CUDA_VISIBLE_DEVICES=0 python main.py --dataset_dir=/path/to/data/ --phase=test --which_direction=AtoB/BtoA

Reference

About

Unsupervised image color enhancement using implementation of CycleGAN-tensorflow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.8%
  • Shell 3.2%