-
Notifications
You must be signed in to change notification settings - Fork 150
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
Introduce mosaic augmentation #1007
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1007 +/- ##
==========================================
- Coverage 85.88% 85.59% -0.29%
==========================================
Files 255 256 +1
Lines 5631 5679 +48
==========================================
+ Hits 4836 4861 +25
- Misses 795 818 +23
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
what I want to achieve with non-scaling mosaic is keeping the original size of objects. The current scaled mosaic tries to encircle all of the bboxes in an image and make such crop, that will include all of the objects. Another, smarter approach is to select exclusive areas in an image that can be cropped out and used as "pieces" in the mosaic. |
Can this be merged? It looks fantastic, and I've been struggling trying to implement one myself. |
@dav-ell Oh wow! I completely forgot about this one. Yeah I'll sync master changes and try to merge it as is. (the non-scaling mosaic aug is still TBD but if you find it useful as is then I'd say let's merge!) |
Thanks @potipot! What a shame that I just finished my own custom implementation that I referenced here: albumentations-team/albumentations#677 (comment) The good news is that this one has more features than mine, so I'll almost definitely be switching over once it's in. |
This looks great. I am also looking for a similar functionality for object detection. |
Any update on this? |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Hi @mikel-brostrom, it's been a while since I worked on this. I just checked and it should be working. Do you mind giving it a try? you can install this PR in your venv by
here is the notebook showcasing how to use the mosaic tfm: if it works for you I could put some more time into it and try to merge it. |
Fixes #587