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

Inplace Color Augmentations (RandomBrightness, RandomContrast, RandomSaturation) #162

Merged
merged 3 commits into from
Mar 2, 2022
Merged

Conversation

Jasonlee1995
Copy link
Contributor

Following the advices from closed pull request, change out-place to in-place.
(speed improved)

Lack of my ability, augmentations don't contain adjusting hue and are divided into 3 parts with RandomBrightness, RandomContrast, RandomSaturation.

To avoid errors, I changed some of the methods which occur error on my env.
(changing torch unsqueeze, expand operations to numpy expand_dims, repeat operations occurs error)

Copy link
Collaborator

@GuillaumeLeclerc GuillaumeLeclerc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good. There is another PR (#154 ) that intersects with this one. Maybe we should merge the two implementations ?

ffcv/transforms/color_jitter.py Show resolved Hide resolved
ffcv/transforms/__init__.py Show resolved Hide resolved
@GuillaumeLeclerc
Copy link
Collaborator

#154 is still a WIP so I will merge this one in the meantime. Thank you for the work!

@GuillaumeLeclerc GuillaumeLeclerc changed the base branch from main to v1.0.0 March 2, 2022 21:41
@GuillaumeLeclerc GuillaumeLeclerc merged commit a3dcced into libffcv:v1.0.0 Mar 2, 2022
@netw0rkf10w netw0rkf10w mentioned this pull request Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants