Git Product home page Git Product logo

unpaired-image-enhancement's Introduction

Unpaired Image Enhancement Featuring Reinforcement-Learning-Controlled Image Editing Software

This is the official implementation of the paper in AAAI2020. We provide the sample codes for training and testing and pretrained models on photo enhancement.

architecture

Requirements

  • Python 3.6
  • Chainer 7.0
  • ChainerRL 0.6
  • pyyaml
  • matplotlib
  • opencv-python
  • numpy

Installation

  1. Clone the repository.
# Make sure to clone with --recursive
git clone --recursive [email protected]:satoshi-kosugi/Unpaired-Image-Enhancement.git
  1. Download MIT-Adobe FiveK Dataset. We used Adobe Lightroom to decode the images to TIF format and resize the long side of the images to 512 px. Put original images and images retouched by Expert C in $ROOT/fivek_dataset/original/ and $ROOT/fivek_dataset/expertC/, respectively.

Training and testing

  1. Train the framework.
python train.py settings/photo_enhancement.yaml logs
  1. Test the framework.
python test.py settings/photo_enhancement.yaml logs --result_dir logs/20200115T223451.986831/96000_finish/test_results --load logs/20200115T223451.986831/96000_finish/
  1. If you want to try the framework, you can use the demo code and the trained model.
python demo.py settings/photo_enhancement.yaml --load_generator generator_weights_for_demo.npz --file_name $image_name

      The following windows will be displayed.

demo

Reference

Our implementation is based on chainer_spiral. We would like to thank them.

Citation

If you find our research useful in your research, please consider citing:

@inproceedings{kosugi2020unpaired,
    title={Unpaired Image Enhancement Featuring Reinforcement-Learning-Controlled Image Editing Software},
    author={Kosugi, Satoshi and Yamasaki, Toshihiko},
    booktitle = {AAAI},
    year = {2020}
}

unpaired-image-enhancement's People

Watchers

James Cloos 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.