Giter VIP home page Giter VIP logo

laplacianloss-pytorch's Introduction

Implementation of Laplacian Loss in Pytorch

Building Laplacian Pyramid using EXPAND operator. The PyrUp operator is implemented by torch.nn.functional.conv_transpose2d. The PyrDown operator is implemented by torch.nn.functional.conv2d using gaussian kernel.

laplacian

Comparison with OpenCV-implementation

scale pytorch-implementation opencv-implementation
input input input
0 my offcial
1 my offcial
2 my offcial
3 my offcial

laplacianloss-pytorch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

laplacianloss-pytorch's Issues

cpu but not CUDA

hi there,

I loved this simple code, however it doesn't run on CUDA out of the box.
What's missing?

To test change: cuda = False to cuda = True

"RuntimeError: Expected all tensors to be on the same device, but found at least two devicesm cpu and cuda:0! (when checking argument for argument weight in method wrapper_thnn_conv2d_forward)"

I would provide pull, but as I'm new to cuda, this is a stretch....

Would appreciate hint!

License ?

Hello,
Can you specify the LICENSE file please ?
Thanks

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.