GithubHelp home page GithubHelp logo

Comments (4)

mhtrinh avatar mhtrinh commented on May 28, 2024 1

I use multi spectral images: RGB, IRA, IRB, IRC, ... So I stack them up to something like 6 channels image.

I still want to do some brightness and color augmentation. So I use PerChannel to select and apply color jittering to the "color" image in my stack, and apply Brightness and contrast to the other channels in my image stack. At least that how I hope it should work.

Otherwise, I need to do a separate augmentation pipeline for each type of image independently and then stack them before feeding it to the model ? How would you do that with mmpretrain for example ?

from albumentations.

ternaus avatar ternaus commented on May 28, 2024

I it an experimental feature and just adding it to __all__ is not enough.

  1. Some transforms like ColorJitter could not be applied to one channel, but require 3 channel images. => It should be a Separate Transform, say SubsetChannels
  2. In the existing implementation, there is no guarantee that it will be the same transform, applied to different channels as many transforms sample random parameters and different channels would get different values.

We could address both issues and make things work as expected. (It is not just adding to __all__).

But, for use to better understand how to do it better, could you please share what problem do you face that requires transform being applied to a subset?

from albumentations.

ternaus avatar ternaus commented on May 28, 2024

I see. Yep, for stacking images made sense. I did something similar working with satellite images before Albumentations.

We will add the desired functionality. Hopefully in the next couple weeks, before the next release.

from albumentations.

ternaus avatar ternaus commented on May 28, 2024

Added in #1690

But it is called: SelectiveChannelTransform

from albumentations.

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.