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

[Fix] Improve MultiImageMixDataset unittests coverage #1197

Merged
merged 24 commits into from
Jan 22, 2022
Merged

[Fix] Improve MultiImageMixDataset unittests coverage #1197

merged 24 commits into from
Jan 22, 2022

Conversation

lkm2835
Copy link
Contributor

@lkm2835 lkm2835 commented Jan 11, 2022

Motivation

RandomMosaic: line 1129 ~ 1130
MultiImageMixDataset: line 249 ~ 261

Improved unittest coverage

Modification

tests/test_data/test_dataset.py

Add RandomMosaic in pipeline
Fix typo: data_infos -> img_infos

@codecov
Copy link

codecov bot commented Jan 11, 2022

Codecov Report

Merging #1197 (90875b5) into master (6c3e63e) will increase coverage by 0.10%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1197      +/-   ##
==========================================
+ Coverage   90.10%   90.21%   +0.10%     
==========================================
  Files         126      126              
  Lines        7430     7430              
  Branches     1239     1239              
==========================================
+ Hits         6695     6703       +8     
+ Misses        530      523       -7     
+ Partials      205      204       -1     
Flag Coverage Δ
unittests 90.21% <ø> (+0.10%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmseg/datasets/pipelines/transforms.py 98.02% <0.00%> (+0.39%) ⬆️
mmseg/datasets/dataset_wrappers.py 96.85% <0.00%> (+4.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c3e63e...90875b5. Read the comment docs.

@Junjun2016
Copy link
Collaborator

Hi @lkm2835
Thanks for your contribution again.

@MeowZheng MeowZheng merged commit 6a22c42 into open-mmlab:master Jan 22, 2022
bowenroom pushed a commit to bowenroom/mmsegmentation that referenced this pull request Feb 25, 2022
* Fix typo in usage example

* original MultiImageMixDataset code in mmdet

* Add MultiImageMixDataset unittests in test_dataset_wrapper

* fix lint error

* fix value name ann_file to ann_dir

* modify retrieve_data_cfg (#1)

* remove dynamic_scale & add palette

* modify retrieve_data_cfg method

* modify retrieve_data_cfg func

* fix error

* improve the unittests coverage

* fix unittests error

* Dataset (#2)

* add cfg-options

* Add unittest in test_build_dataset

* add blank line

* add blank line

* add a blank line

Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>

* [Fix] Add MultiImageMixDataset unittests

Co-authored-by: Younghoon-Lee <72462227+Younghoon-Lee@users.noreply.github.com>
Co-authored-by: MeowZheng <meowzheng@outlook.com>
Co-authored-by: Miao Zheng <76149310+MeowZheng@users.noreply.github.com>
wjkim81 pushed a commit to wjkim81/mmsegmentation that referenced this pull request Dec 3, 2023
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.

5 participants