Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Swin-Transformer-Object-Detection
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wanggh
Swin-Transformer-Object-Detection
Commits
204f7514
Unverified
Commit
204f7514
authored
4 years ago
by
Wenwei Zhang
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix bugs in TTA of cascade rcnn & htc (#2944)
parent
0372b3e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.isort.cfg
+1
-1
1 addition, 1 deletion
.isort.cfg
mmdet/models/roi_heads/cascade_roi_head.py
+1
-2
1 addition, 2 deletions
mmdet/models/roi_heads/cascade_roi_head.py
mmdet/models/roi_heads/htc_roi_head.py
+1
-5
1 addition, 5 deletions
mmdet/models/roi_heads/htc_roi_head.py
with
3 additions
and
8 deletions
.isort.cfg
+
1
−
1
View file @
204f7514
...
...
@@ -3,6 +3,6 @@ line_length = 79
multi_line_output
=
0
known_standard_library
=
setuptools
known_first_party
=
mmdet
known_third_party
=
PIL,asynctest,cityscapesscripts,cv2,matplotlib,
mmcv,
numpy,onnx,pycocotools,pytest,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
known_third_party
=
PIL,asynctest,cityscapesscripts,cv2,matplotlib,numpy,onnx,pycocotools,pytest,robustness_eval,roi_align,roi_pool,seaborn,six,terminaltables,torch,torchvision
no_lines_before
=
STDLIB,LOCALFOLDER
default_section
=
THIRDPARTY
This diff is collapsed.
Click to expand it.
mmdet/models/roi_heads/cascade_roi_head.py
+
1
−
2
View file @
204f7514
...
...
@@ -393,8 +393,7 @@ class CascadeRoIHead(BaseRoIHead, BBoxTestMixin, MaskTestMixin):
if
self
.
with_mask
:
if
det_bboxes
.
shape
[
0
]
==
0
:
segm_result
=
[[]
for
_
in
range
(
self
.
mask_head
[
-
1
].
num_classes
-
1
)]
for
_
in
range
(
self
.
mask_head
[
-
1
].
num_classes
)]
else
:
aug_masks
=
[]
aug_img_metas
=
[]
...
...
This diff is collapsed.
Click to expand it.
mmdet/models/roi_heads/htc_roi_head.py
+
1
−
5
View file @
204f7514
...
...
@@ -376,7 +376,7 @@ class HybridTaskCascadeRoIHead(CascadeRoIHead):
return
results
def
aug_test
(
self
,
img_feats
,
img_metas
,
proposals
=
None
,
rescale
=
False
):
def
aug_test
(
self
,
img_feats
,
proposal_list
,
img_metas
,
rescale
=
False
):
"""
Test with augmentations.
If rescale is False, then returned bboxes and masks will fit the scale
...
...
@@ -389,10 +389,6 @@ class HybridTaskCascadeRoIHead(CascadeRoIHead):
else
:
semantic_feats
=
[
None
]
*
len
(
img_metas
)
# recompute feats to save memory
proposal_list
=
self
.
aug_test_rpn
(
img_feats
,
img_metas
,
self
.
test_cfg
.
rpn
)
rcnn_test_cfg
=
self
.
test_cfg
aug_bboxes
=
[]
aug_scores
=
[]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment