question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OneOf transformation?

See original GitHub issue

❓ Questions and Help

Hi, I didn’t see it in the documentation, but I am wondering is there a OneOf transformation in the kornia?

For example, in AugLy has


AUGMENTATIONS = [
    imaugs.Blur(),
    imaugs.ColorJitter(**COLOR_JITTER_PARAMS),
    imaugs.OneOf(
        [imaugs.OverlayOntoScreenshot(), imaugs.OverlayEmoji(), imaugs.OverlayText()]
    ),
]

which means it would apply only one of the OverlayOntoScreenshot, OverlayEmoji or OverlayText each time calling AUGMENTATIONS. I think albumentations also has a similar one.

It’s relatively easy to implement, but I am just want to check if there actually is an OneOf transformation in kornia.

Thanks!

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
edgarribacommented, Jul 19, 2021

@shijianjian can we have an example/tutorial of the use of that dual functionality ?

1reaction
edgarribacommented, Mar 7, 2022

@vedal you are right, but i have the opinion that having a separate OneOf (or Select, Choose [better namings]) is more explicit and easy to follow ? /cc @shijianjian

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transforming and augmenting images - PyTorch
Transforms are common image transformations available in the torchvision.transforms module. They can be chained together using Compose . Most transform classes ...
Read more >
Augmentation - TorchIO - Read the Docs
OneOf # · transforms – Dictionary with instances of Transform as keys and probabilities as values. Probabilities are normalized so they sum to...
Read more >
One Of A Kind Transformations | McKinney TX - Facebook
One Of A Kind Transformations, McKinney, Texas. 1186 likes · 3 were here. One of A Kind Transformations is exactly that: Old furniture...
Read more >
transformations
TRANSFORMATIONS. One of the assumptions of using ANOVA to test for significance is that the errors should be independently and normally distributed.
Read more >
Saban and the Ancient: Book One of the Transformation
Saban and the Ancient: Book One of the Transformation [Amodeo, Dante] on Amazon.com. *FREE* shipping on qualifying offers. Saban and the Ancient: Book...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found