Git Product home page Git Product logo

pixtransform's Introduction

PixTransform

PyTorch implementation of the algorithm presented in our paper [1]. The algorithm can be used to perform guided super-resolution, for instance:

Have a look at our blog post or publication if you want to learn more about the method.

The function PixTransform takes as input two images, the source image of size M x M and a guide image of size C x N x N, and returns an upsampled version of the source image with size N x N. The upsampling factor D, equal to N/M, must be an integer.

predicted_target = PixTransform(source,guide)

additional variables can be passed to change the default parameters. For further details about the algorithm see [1]

Getting started

Installation

clone this git repository and make sure that the following packages are installed:

  • numpy
  • matplotlib
  • scipy
  • Pytorch
  • ProxTV (optional)
  • tqdm
Example script

To run the algorithm on some sample images check the Jupyter Notebook file process_examples.ipynb.

Other methods

We compare the results of our algorithm with the results of the guided filter [2], the fast bilateral solver [3] (authors' implementation), the static-dynamic filter [4] (authors' implementation) and the multi-scale guided network [5] (authors' implementation).

References

[1] R. de Lutio, S. D'Aronco, J. D. Wegner, K. Schindler. "Guided Super-Resolution as Pixel-to-Pixel Transformation", ICCV, 2019.

[2] K. He, J. Sun, X. Tang. "Guided image filtering", TPAMI, 2013.

[3] J. T. Barron, B. Poole. "The fast bilateral solver", ECCV, 2016.

[4] B. Ham, M. Cho, J. Ponce. "Robust guided image filtering using nonconvex potentials", TPAMI, 2018.

[5] T.-W. Hui, C. C. Loy, X. Tang. "Depth map super-resolution by deep multi-scale guidance", ECCV, 2016.

pixtransform's People

Contributors

riccardodelutio 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.