[Feature] Add Mosaic transform#1093
[Feature] Add Mosaic transform#1093Junjun2016 merged 21 commits intoopen-mmlab:masterfrom lkm2835:mosaic
Conversation
|
Hi @lkm2835 |
Junjun2016
left a comment
There was a problem hiding this comment.
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