-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add Jpeg Compression augmentation #8290
Comments
Thanks for the feature request @gau-nernst . This sounds reasonable, let me know if you'd like to submit a PR for this. Instead of having 2 parameters |
@NicolasHug I can try to submit a PR for this one also. Do you have any preference on how we should name it? |
Just |
@gau-nernst do you think you'll have time to submit a PR before the end of week? I'm asking because our branch cut for the next release will be on Monday, so ideally we should get this in before Monday in order for the transform to be available for torchvision 0.18. I don't mean to rush you though, as I know you're already working on #8295. LMK and if you can't make it no worries, I'll try to do it myself. |
@NicolasHug I can do it. I made a mistake of not making a new branch for #8295 in my fork, so I wanted to get #8295 merged before working on another PR. But it's alright, I can still do it. |
🚀 The feature
Add Jpeg Compression as an augmentation.
Motivation, pitch
Jpeg compression augmentation can be useful to simulate compression artifacts from JPEG.
Since torchvision already has facilities to do Jpeg encoding and decoding from Tensor, implementation for Jpeg compression augmentation is simple.
Proof of concept
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: