Giter Site home page Giter Site logo

ycjungsubhuman / color_transfer_histogram_analogy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codeslake/color_transfer_histogram_analogy

0.0 1.0 0.0 13.91 MB

[CGI 2020] The Official Implementation for "Deep Color Transfer using Histogram Analogy"

License: GNU Affero General Public License v3.0

Python 100.00%

color_transfer_histogram_analogy's Introduction

Deep Color Transfer using Histogram Analogy

License CC BY-NC

This repository contains the official PyTorch implementation of the following paper:

Deep Color Transfer using Histogram Analogy
Junyong Lee, Hyeongseok Son, Gunhee Lee, Jonghyeop Lee, Sunghyun Cho and Seungyong Lee, CGI 2020

Figure: Color transfer results on various source and reference image pairs. For visualization, the reference image is cropped to make a same size with other images.

Getting Started

Prerequisites

Tested environment

Ubuntu Python PyTorch CUDA

  1. Install requirements

    • pip install -r requirements.txt
  2. Pre-trained models

    • Download and unzip pretrained weights under [CHECKPOINT_ROOT]:

      ├── [CHECKPOINT_ROOT]
      │   ├── *.pth
      

      NOTE:

      [CHECKPOINT_ROOT] can be specified with the option --checkpoints_dir.

Testing the network

  • To test the network:

    python test.py --dataroot [test folder path] --checkpoints_dir [CHECKPOINT_ROOT]
    # e.g., python test.py --dataroot test --checkpoints_dir checkpoints

    Note:

    • Input images and their segment maps should be placed under ./test/input and ./test/seg_in, respectively.
    • Target images and their segment maps should be placed under ./test/target and ./test/seg_tar, respectively.
    • The test results will be saved under ./results/.
  • To turn on semantic replacement, add --is_SR:

    python test.py --dataroot [test folder path] --checkpoints_dir [ckpt path] --is_SR

Citation

If you find this code useful, please consider citing:

@article{Lee_2020_CTHA,
  author = {Lee, Junyong and Son, Hyeongseok and Lee, Gunhee and Lee, Jonghyeop and Cho, Sunghyun and Lee, Seungyong},
  title = {Deep Color Transfer using Histogram Analogy},
  journal = {The Visual Computer},
  volume = {36},
  number = {10},
  pages = {2129--2143},
  year = 2020,
}

Contact

Open an issue for any inquiries. You may also have contact with [email protected]

Resources

All material related to our paper is available via the following links:

Link
Paper PDF
Supplementary Files
Checkpoint Files

License

This software is being made available under the terms in the LICENSE file.

Any exemptions to these terms require a license from the Pohang University of Science and Technology.

About Coupe Project

Project ‘COUPE’ aims to develop software that evaluates and improves the quality of images and videos based on big visual data. To achieve the goal, we extract sharpness, color, composition features from images and develop technologies for restoring and improving by using them. In addition, personalization technology through user reference analysis is under study.

Please check out other Coupe repositories in our Posgraph github organization.

Useful Links

color_transfer_histogram_analogy's People

Contributors

codeslake avatar hyeongseokson1 avatar leejonghyeop 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.