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
c8cc01e8
Unverified
Commit
c8cc01e8
authored
Oct 20, 2018
by
Kai Chen
Committed by
GitHub
Oct 20, 2018
Browse files
Merge pull request #50 from hellock/dev
Update to 0.5.1
parents
4990aae6
994b6cb6
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
12 deletions
+18
-12
README.md
README.md
+6
-0
configs/fast_mask_rcnn_r50_fpn_1x.py
configs/fast_mask_rcnn_r50_fpn_1x.py
+1
-1
configs/fast_rcnn_r50_fpn_1x.py
configs/fast_rcnn_r50_fpn_1x.py
+1
-1
configs/faster_rcnn_r50_fpn_1x.py
configs/faster_rcnn_r50_fpn_1x.py
+1
-1
configs/mask_rcnn_r50_fpn_1x.py
configs/mask_rcnn_r50_fpn_1x.py
+1
-1
mmdet/models/bbox_heads/__init__.py
mmdet/models/bbox_heads/__init__.py
+2
-2
mmdet/models/bbox_heads/convfc_bbox_head.py
mmdet/models/bbox_heads/convfc_bbox_head.py
+5
-5
setup.py
setup.py
+1
-1
No files found.
README.md
View file @
c8cc01e8
...
...
@@ -32,6 +32,12 @@ which is heavily depended on by this toolbox.
This project is released under the
[
Apache 2.0 license
](
LICENSE
)
.
## Updates
v0.5.1 (20/10/2018)
-
Add BBoxAssigner and BBoxSampler, the
`train_cfg`
field in config files are restructured.
-
`ConvFCRoIHead`
/
`SharedFCRoIHead`
are renamed to
`ConvFCBBoxHead`
/
`SharedFCBBoxHead`
for consistency.
## Benchmark and model zoo
We provide our baseline results and the comparision with Detectron, the most
...
...
configs/fast_mask_rcnn_r50_fpn_1x.py
View file @
c8cc01e8
...
...
@@ -20,7 +20,7 @@ model = dict(
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'SharedFC
RoI
Head'
,
type
=
'SharedFC
BBox
Head'
,
num_fcs
=
2
,
in_channels
=
256
,
fc_out_channels
=
1024
,
...
...
configs/fast_rcnn_r50_fpn_1x.py
View file @
c8cc01e8
...
...
@@ -20,7 +20,7 @@ model = dict(
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'SharedFC
RoI
Head'
,
type
=
'SharedFC
BBox
Head'
,
num_fcs
=
2
,
in_channels
=
256
,
fc_out_channels
=
1024
,
...
...
configs/faster_rcnn_r50_fpn_1x.py
View file @
c8cc01e8
...
...
@@ -30,7 +30,7 @@ model = dict(
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'SharedFC
RoI
Head'
,
type
=
'SharedFC
BBox
Head'
,
num_fcs
=
2
,
in_channels
=
256
,
fc_out_channels
=
1024
,
...
...
configs/mask_rcnn_r50_fpn_1x.py
View file @
c8cc01e8
...
...
@@ -30,7 +30,7 @@ model = dict(
out_channels
=
256
,
featmap_strides
=
[
4
,
8
,
16
,
32
]),
bbox_head
=
dict
(
type
=
'SharedFC
RoI
Head'
,
type
=
'SharedFC
BBox
Head'
,
num_fcs
=
2
,
in_channels
=
256
,
fc_out_channels
=
1024
,
...
...
mmdet/models/bbox_heads/__init__.py
View file @
c8cc01e8
from
.bbox_head
import
BBoxHead
from
.convfc_bbox_head
import
ConvFC
RoI
Head
,
SharedFC
RoI
Head
from
.convfc_bbox_head
import
ConvFC
BBox
Head
,
SharedFC
BBox
Head
__all__
=
[
'BBoxHead'
,
'ConvFC
RoI
Head'
,
'SharedFC
RoI
Head'
]
__all__
=
[
'BBoxHead'
,
'ConvFC
BBox
Head'
,
'SharedFC
BBox
Head'
]
mmdet/models/bbox_heads/convfc_bbox_head.py
View file @
c8cc01e8
...
...
@@ -4,7 +4,7 @@ from .bbox_head import BBoxHead
from
..utils
import
ConvModule
class
ConvFC
RoI
Head
(
BBoxHead
):
class
ConvFC
BBox
Head
(
BBoxHead
):
"""More general bbox head, with shared conv and fc layers and two optional
separated branches.
...
...
@@ -24,7 +24,7 @@ class ConvFCRoIHead(BBoxHead):
fc_out_channels
=
1024
,
*
args
,
**
kwargs
):
super
(
ConvFC
RoI
Head
,
self
).
__init__
(
*
args
,
**
kwargs
)
super
(
ConvFC
BBox
Head
,
self
).
__init__
(
*
args
,
**
kwargs
)
assert
(
num_shared_convs
+
num_shared_fcs
+
num_cls_convs
+
num_cls_fcs
+
num_reg_convs
+
num_reg_fcs
>
0
)
if
num_cls_convs
>
0
or
num_reg_convs
>
0
:
...
...
@@ -116,7 +116,7 @@ class ConvFCRoIHead(BBoxHead):
return
branch_convs
,
branch_fcs
,
last_layer_dim
def
init_weights
(
self
):
super
(
ConvFC
RoI
Head
,
self
).
init_weights
()
super
(
ConvFC
BBox
Head
,
self
).
init_weights
()
for
module_list
in
[
self
.
shared_fcs
,
self
.
cls_fcs
,
self
.
reg_fcs
]:
for
m
in
module_list
.
modules
():
if
isinstance
(
m
,
nn
.
Linear
):
...
...
@@ -162,11 +162,11 @@ class ConvFCRoIHead(BBoxHead):
return
cls_score
,
bbox_pred
class
SharedFC
RoI
Head
(
ConvFC
RoI
Head
):
class
SharedFC
BBox
Head
(
ConvFC
BBox
Head
):
def
__init__
(
self
,
num_fcs
=
2
,
fc_out_channels
=
1024
,
*
args
,
**
kwargs
):
assert
num_fcs
>=
1
super
(
SharedFC
RoI
Head
,
self
).
__init__
(
super
(
SharedFC
BBox
Head
,
self
).
__init__
(
num_shared_convs
=
0
,
num_shared_fcs
=
num_fcs
,
num_cls_convs
=
0
,
...
...
setup.py
View file @
c8cc01e8
...
...
@@ -12,7 +12,7 @@ def readme():
MAJOR
=
0
MINOR
=
5
PATCH
=
0
PATCH
=
1
SUFFIX
=
''
SHORT_VERSION
=
'{}.{}.{}{}'
.
format
(
MAJOR
,
MINOR
,
PATCH
,
SUFFIX
)
...
...
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