Coder Social home page Coder Social logo

Support for Reinhard about torchstain HOT 2 CLOSED

andreped avatar andreped commented on September 28, 2024
Support for Reinhard

from torchstain.

Comments (2)

andreped avatar andreped commented on September 28, 2024

I made a PR which adds reinhard support with numpy backend: #25

Regarding the other backends, it would be beneficial to use tensorflow-io, as it supports both rgb2lab and lab2rgb, which was annoying to implement from scratch in numpy:
https://www.tensorflow.org/io/api_docs/python/tfio/experimental/color/rgb_to_lab

In pytorch there exists a library that have the same color conversion methods:
https://github.com/richzhang/colorization-pytorch/blob/66a1cb2e5258f7c8f374f582acc8b1ef99c13c27/util/util.py#L172

We could either use these libraries directly, or make our own implementations, but this will take time, but I could make an attempt. Will make a separate PR for that, as it will likely be a lot of work.

The reinhard transform itself is quite straight forward to implement.

from torchstain.

andreped avatar andreped commented on September 28, 2024

New PR which adds torch backend support: #27

Now all backends should be supported after it has been merged. Hence, closing this issue.

from torchstain.

Related Issues (20)

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.