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
8bc0b9ce
Unverified
Commit
8bc0b9ce
authored
4 years ago
by
Thang Vu
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix flip test check (#2958)
parent
85a83f21
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mmdet/datasets/pipelines/test_time_aug.py
+3
-4
3 additions, 4 deletions
mmdet/datasets/pipelines/test_time_aug.py
with
3 additions
and
4 deletions
mmdet/datasets/pipelines/test_time_aug.py
+
3
−
4
View file @
8bc0b9ce
...
...
@@ -4,7 +4,6 @@ import mmcv
from
..builder
import
PIPELINES
from
.compose
import
Compose
from
.transforms
import
RandomFlip
@PIPELINES.register_module
()
...
...
@@ -37,10 +36,10 @@ class MultiScaleFlipAug(object):
if
not
self
.
flip
and
self
.
flip_direction
!=
[
'
horizontal
'
]:
warnings
.
warn
(
'
flip_direction has no effect when flip is set to False
'
)
if
(
self
.
flip
and
not
any
([
isinstance
(
_
,
RandomFlip
)
for
_
in
self
.
transforms
])):
if
(
self
.
flip
and
not
any
([
t
[
'
type
'
]
==
'
RandomFlip
'
for
t
in
transforms
])):
warnings
.
warn
(
'
flip has no effect when RandFlip is not in transforms
'
)
'
flip has no effect when Rand
om
Flip is not in transforms
'
)
def
__call__
(
self
,
results
):
aug_data
=
[]
...
...
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