Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
ff2f1f3c
Commit
ff2f1f3c
authored
Aug 29, 2019
by
Cao Yuhang
Committed by
Kai Chen
Aug 29, 2019
Browse files
Fix ssd bug (#1288)
* fix bug of ssd * clean
parent
bfce31c4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
configs/ssd512_coco.py
configs/ssd512_coco.py
+2
-2
mmdet/datasets/pipelines/transforms.py
mmdet/datasets/pipelines/transforms.py
+1
-1
No files found.
configs/ssd512_coco.py
View file @
ff2f1f3c
...
@@ -65,7 +65,7 @@ train_pipeline = [
...
@@ -65,7 +65,7 @@ train_pipeline = [
type
=
'MinIoURandomCrop'
,
type
=
'MinIoURandomCrop'
,
min_ious
=
(
0.1
,
0.3
,
0.5
,
0.7
,
0.9
),
min_ious
=
(
0.1
,
0.3
,
0.5
,
0.7
,
0.9
),
min_crop_size
=
0.3
),
min_crop_size
=
0.3
),
dict
(
type
=
'Resize'
,
img_scale
=
(
300
,
300
),
keep_ratio
=
False
),
dict
(
type
=
'Resize'
,
img_scale
=
(
512
,
512
),
keep_ratio
=
False
),
dict
(
type
=
'Normalize'
,
**
img_norm_cfg
),
dict
(
type
=
'Normalize'
,
**
img_norm_cfg
),
dict
(
type
=
'RandomFlip'
,
flip_ratio
=
0.5
),
dict
(
type
=
'RandomFlip'
,
flip_ratio
=
0.5
),
dict
(
type
=
'DefaultFormatBundle'
),
dict
(
type
=
'DefaultFormatBundle'
),
...
@@ -75,7 +75,7 @@ test_pipeline = [
...
@@ -75,7 +75,7 @@ test_pipeline = [
dict
(
type
=
'LoadImageFromFile'
),
dict
(
type
=
'LoadImageFromFile'
),
dict
(
dict
(
type
=
'MultiScaleFlipAug'
,
type
=
'MultiScaleFlipAug'
,
img_scale
=
(
300
,
300
),
img_scale
=
(
512
,
512
),
flip
=
False
,
flip
=
False
,
transforms
=
[
transforms
=
[
dict
(
type
=
'Resize'
,
keep_ratio
=
False
),
dict
(
type
=
'Resize'
,
keep_ratio
=
False
),
...
...
mmdet/datasets/pipelines/transforms.py
View file @
ff2f1f3c
...
@@ -527,7 +527,7 @@ class Expand(object):
...
@@ -527,7 +527,7 @@ class Expand(object):
left
=
int
(
random
.
uniform
(
0
,
w
*
ratio
-
w
))
left
=
int
(
random
.
uniform
(
0
,
w
*
ratio
-
w
))
top
=
int
(
random
.
uniform
(
0
,
h
*
ratio
-
h
))
top
=
int
(
random
.
uniform
(
0
,
h
*
ratio
-
h
))
expand_img
[
top
:
top
+
h
,
left
:
left
+
w
]
=
img
expand_img
[
top
:
top
+
h
,
left
:
left
+
w
]
=
img
boxes
=
boxes
+
np
.
tile
((
left
,
top
),
2
)
boxes
=
boxes
+
np
.
tile
((
left
,
top
),
2
)
.
astype
(
boxes
.
dtype
)
results
[
'img'
]
=
expand_img
results
[
'img'
]
=
expand_img
results
[
'gt_bboxes'
]
=
boxes
results
[
'gt_bboxes'
]
=
boxes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment