-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[Feature] Add Mosaic transform #1093
Conversation
Hi @lkm2835 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may also need MultiImageMixDataset
.
Can adjust |
I'll prepare and create another PR. |
Great, it is better to add some results on your own datasets or mmseg supported datasets. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1093 +/- ##
==========================================
+ Coverage 90.07% 90.17% +0.09%
==========================================
Files 125 125
Lines 7268 7356 +88
Branches 1206 1218 +12
==========================================
+ Hits 6547 6633 +86
- Misses 518 520 +2
Partials 203 203
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@lkm2835 Hi,The results are as follows:
We can see that |
We have done different img scales test for Mosaic augmentation. The results are as follows: |
* Fix typo in usage example * original mosaic code in mmdet * Adjust mosaic to the semantic segmentation * Remove bbox test in test_mosaic * Add unittests * Fix resize mode for seg_fields * Fix repr error * modify Mosaic docs * modify from Mosaic to RandomMosaic * Add docstring * modify Mosaic docstring * [Docs] Add a blank line before Returns: * add blank lines Co-authored-by: MeowZheng <meowzheng@outlook.com>
Modification
mmseg/datasets/pipelines/transforms.py
: Add class Mosaictests/test_data/test_transform.py
: Add test_mosaicmmseg/datasets/pipelines/__init__.py
: import Mosaicoriginal code: Mosaic, test_mosaic in mmdet