Refactoring `ColorJitter` and `ColorJiggle` into smaller components
See original GitHub issue🚀 Feature
ColorJitter
and ColorJiggle
currently are too packed. It is better to develop smaller components and rewrite these as compositions of smaller components.
Motivation
Smaller components can be applied individually. For e.g., brightness and contrast jitterings are applicable to gray images, but currently they are under ColorJitter
and ColorJiggle
which are not applicable to gray images.
Pitch
class BrightnessJitter(...):
...
class ContrastJitter(...):
...
class HueJitter(...):
...
class ColorJitter(nn.Sequential):
def __init__(...):
self.brightness_jitter = BrightnessJitter(...)
self.contrast_jitter = ContrastJitter(...)
self.hue_jitter = HueJitter(...)
...
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
ColorJitter — Torchvision main documentation
Randomly change the brightness, contrast, saturation and hue of an image. If the image is torch Tensor, it is expected to have […,...
Read more >Programming PyTorch for Deep Learning [Book]
The idea is quite simple: over the course of an epoch, start out with a small learning rate and increase to a higher...
Read more >kornia.augmentation - Read the Docs
This module implements in a high level logic. The main features of this module, and similar to the rest of the library, is...
Read more >kornia - githubmemory
Refactoring `ColorJitter` and `ColorJiggle` into smaller components ... Make software development more efficient, Also welcome to join our telegram.
Read more >[FEATURE] Add Yapf as pre-commit hook,about kornia/kornia ...
We should have a script to pre-format the code before sending a pull request: ... Refactoring `ColorJitter` and `ColorJiggle` into smaller components HOT...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@edgarriba I think I can work on a PR if it’s not too urgent.
I like the names such
RandomBrightness
,RandomContrast
, etc. it goes according with other ops in the module