Coder Social home page Coder Social logo

decouplelearning's Introduction

Decouple Learning for Parameterized Image Operators

This is the implementation of ECCV 2018 paper "Decouple Learning for Parameterized Image Operators" and TPAMI 2021 paper "A General Decoupled Learning Framework for Parameterized Image Operators" by Qingnan Fan, Dongdong Chen et al.

One network that implements various visual effects by adaptively changing the network weights with controllable continuous input parameters.

image image image

Introduction

Decouple Learning is a technique that successfully incorporates many different parameterised image operators (edge-preserving filter, texture removal, shock filter, super resolution, denoising, derain, deblock, etc.) into one single network.

Decouple Learning does not require retraining or finetuning any other networks for different image operators or different parameter settings for a single operator.

Getting Started

This paper is implemented with Pytorch framework.

Demo

Directly run evaluation_10_operator_model.py to test our model on the trained ten image operators with different parameter settings, such as smoothness strength, corruption level of input images.

Users can also test our models trained on 6 filtering based operators (evaluation_6_filter_operator_model.py), 4 restoration operators (evaluation_4_restoration_operator_model.py) or each single operator with different parameters (evaluation_1_operator_model.py).

Data Generation

Run training_data_generation.m in MATLAB to generate the training or test data for the nine image operators mentioned in the paper, which includes L0 smoothing, RTV, WLS, RGF, WMF, shock filter, super resolution, denoising and deblocking. The training data for the derain task is collected from this paper.

The pre-generated evaluation images used in the paper can be downloaded here.

The generated training or test images need to be collected into a file list with the same form of example_filelist.txt for easy training.

Training

Directly run train_10_operator_model.py to jointly train 10 image operators with different parameter settings.

Users can also choose to train our model on the 6 filtering based operators (train_6_filter_operator_model.py), 4 restoration operators (train_4_restoration_operator_model.py) or each single operator (train_1_operator.py).

Error metric computation

Compute the PSNR and SSIM error metric by running compute_error.m in MATLAB. The ground truth images can be obtained from the above pre-generated evaluation image link.

Updates

The tpami extension of this paper mainly includes jointly training over ten image operators facilitated with the real-time parameter tuning module. The related codes is in train_10_operator_model_realtime.py and evaluation_10_operator_model_realtime.py.

Cite

You can use our codes for research purpose only. And please cite our papers when you use our codes.

@article{fan2018decouple,
  title={Decouple Learning for Parameterized Image Operators},
  author={Fan, Qingnan and Chen, Dongdong and Yuan, Lu and Hua, Gang and Yu, Nenghai and Chen, Baoquan},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2018}
}
@article{fan2019decouple,
  title={A General Decoupled Learning Framework  for Parameterized Image Operators},
  author={Fan, Qingnan and Chen, Dongdong and Yuan, Lu and Hua, Gang and Yu, Nenghai and Chen, Baoquan},
  booktitle={IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI)},
  year={2019}
}

Contact

If you find any bugs or have any ideas of optimizing these codes, please contact me via fqnchina [at] gmail [dot] com

decouplelearning's People

Contributors

fqnchina avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

decouplelearning's Issues

question about fully connected layers

Hi, thanks for sharing your works.
I have two questions

  1. inputTensor = inputTensor - 128, why do you subtract 128?
  2. The whole project seems using different datasets of different tasks to train. That means, you just mixes the datasets together and then trains the whole, train_loss_all has no practical use.
    What is the role of 20 fully connected layers?
    Looking forward to your reply.

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.