Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Simpler Augmentation Config #34

Open
triwahyuu opened this issue Jul 20, 2020 · 1 comment
Open

[FEATURE] Simpler Augmentation Config #34

triwahyuu opened this issue Jul 20, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@triwahyuu
Copy link
Member

Is your feature request related to a problem? Please describe.
current augmentation config could be complex, hard to read and understand, and seemingly redundant.

augmentations : [
  {
    module : albumentations,
    args : {
      transforms : [
        {compose : OneOf, args : {
          transforms : [{transform : RandomBrightnessContrast, args : {p : 0.5}},
                        {transform : RandomSnow, args : {p : 0.5}}
          ],
          p : 0.5}},
        {transform : HorizontalFlip, args : {p : 0.5}},
        {transform : RandomScale, args : {scale_limit : 0.3, p : 0.5,}}
      ],
      bbox_params : {
        min_visibility : 0.0,
        min_area : 0.0
      },
      visual_debug : False
    }
  }
]

Describe the solution you'd like

  • treat compose and transform as the same (at least in config)
  • no need to specify 'transform' and 'compose' separately from 'args'

example:

augmentations : [
  {
    albumentations: {
      transforms : [
        {
          OneOf: {
            transforms : [
              {RandomBrightnessContrast: {p : 0.5}},
              {RandomSnow: {p : 0.5}}
            ],
            p : 0.5
          }
        },
        {HorizontalFlip: {p : 0.5}},
        {RandomScale: {scale_limit : 0.3, p : 0.5,}}
      ],
      bbox_params : {
        min_visibility : 0.0,
        min_area : 0.0
      },
      visual_debug : False
    }
  }
]
@alphinside alphinside added this to the mm milestone Jul 20, 2020
@alphinside alphinside added the enhancement New feature or request label Jul 20, 2020
@alphinside
Copy link
Contributor

good idea

@alphinside alphinside removed this from the mm milestone Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants