[Fix] Support setting pad_val in batch collating#6837
Merged
ZwwWayne merged 2 commits intoopen-mmlab:dev-v2.20.0from Dec 24, 2021
Merged
[Fix] Support setting pad_val in batch collating#6837ZwwWayne merged 2 commits intoopen-mmlab:dev-v2.20.0from
ZwwWayne merged 2 commits intoopen-mmlab:dev-v2.20.0from
Conversation
Contributor
Author
|
I will run an |
Codecov Report
@@ Coverage Diff @@
## dev-v2.20.0 #6837 +/- ##
===============================================
+ Coverage 62.02% 62.03% +0.01%
===============================================
Files 322 323 +1
Lines 25717 25745 +28
Branches 4356 4363 +7
===============================================
+ Hits 15951 15971 +20
- Misses 8918 8928 +10
+ Partials 848 846 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
hhaAndroid
reviewed
Dec 22, 2021
ZwwWayne
reviewed
Dec 22, 2021
Contributor
Author
|
PanopticFPN: 40.1PQ. |
hhaAndroid
approved these changes
Dec 24, 2021
ZwwWayne
pushed a commit
that referenced
this pull request
Jul 18, 2022
* Support setting pad_val during collating * Modify comments
ZwwWayne
pushed a commit
to ZwwWayne/mmdetection
that referenced
this pull request
Jul 19, 2022
* Support setting pad_val during collating * Modify comments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now, the padding value is set to 0 by default, but in
gt_semantic_segit needs to be 255.So I modified the
DefaultFormatBundleand addedpadding_valuein theDataContainer.In batch collating, the
DataContainerwill fill the data with thepadding_value.