mmsegmentation
mmsegmentation copied to clipboard
[Fix] Fix mmseg.api.inference inference_segmentor
Motivation
This PR aims to solve https://github.com/open-mmlab/mmsegmentation/issues/1643. Fix inference_segmentor not working with multiple images path or images. List[str/ndarray]
Modification
- process images if instance is list
- change variable img to imgs
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
jinwonkim93 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it.
Codecov Report
Base: 89.04% // Head: 89.08% // Increases project coverage by +0.03%
:tada:
Coverage data is based on head (
82182c4
) compared to base (13d4c39
). Patch coverage: 95.38% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## master #1849 +/- ##
==========================================
+ Coverage 89.04% 89.08% +0.03%
==========================================
Files 144 145 +1
Lines 8636 8695 +59
Branches 1458 1464 +6
==========================================
+ Hits 7690 7746 +56
- Misses 706 707 +1
- Partials 240 242 +2
Flag | Coverage Δ | |
---|---|---|
unittests | 89.08% <95.38%> (+0.03%) |
:arrow_up: |
Flags with carried forward coverage won't be shown. Click here to find out more.
Impacted Files | Coverage Δ | |
---|---|---|
mmseg/models/losses/tversky_loss.py | 94.44% <94.44%> (ø) |
|
mmseg/apis/inference.py | 64.06% <100.00%> (+2.39%) |
:arrow_up: |
mmseg/models/decode_heads/decode_head.py | 92.63% <100.00%> (ø) |
|
mmseg/models/losses/__init__.py | 100.00% <100.00%> (ø) |
|
mmseg/version.py | 58.33% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Many thanks for your contribution, please sign CLA first.
@MeowZheng @MengzhangLI Anything you like to comment?
@MengzhangLI Is there something i could do more?
jinwonkim93,您好!您在MMSeg项目中给我们提的PR非常重要,感谢您付出私人时间帮助改进开源项目,相信很多开发者会从你的PR中受益。 我们非常期待与您继续合作,OpenMMLab专门成立了贡献者组织MMSIG,为贡献者们提供开源证书、荣誉体系和专享好礼,可通过添加微信:openmmlabwx 联系我们(请备注mmsig+GitHub id),由衷希望您能加入! Dear jinwonkim93, First of all, we want to express our gratitude for your significant PR in the MMSeg project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR. We are looking forward to continuing our collaboration with you. OpenMMLab has established a special contributors' organization called MMSIG, which provides contributors with open-source certificates, a recognition system, and exclusive rewards. You can contact us by adding our WeChat(if you have WeChat): openmmlab_wx, or join in our discord: https://discord.gg/qH9fysxPDW. We sincerely hope you will join us! Best regards! @jinwonkim93
jinwonkim93,您好!您在MMSeg项目中给我们提的PR非常重要,感谢您付出私人时间帮助改进开源项目,相信很多开发者会从你的PR中受益。 我们非常期待与您继续合作,OpenMMLab专门成立了贡献者组织MMSIG,为贡献者们提供开源证书、荣誉体系和专享好礼,可通过添加微信:openmmlabwx 联系我们(请备注mmsig+GitHub id),由衷希望您能加入! Dear jinwonkim93, First of all, we want to express our gratitude for your significant PR in the MMSeg project. Your contribution is highly appreciated, and we are grateful for your efforts in helping improve this open-source project during your personal time. We believe that many developers will benefit from your PR. We are looking forward to continuing our collaboration with you. OpenMMLab has established a special contributors' organization called MMSIG, which provides contributors with open-source certificates, a recognition system, and exclusive rewards. You can contact us by adding our WeChat(if you have WeChat): openmmlab_wx, or join in our discord: https://discord.gg/qH9fysxPDW. We sincerely hope you will join us! Best regards! @jinwonkim93
Thank you for invitation but discord is invalid.
please try this new link: https://discord.com/invite/raweFPmdzG