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
7eb02d29
Commit
7eb02d29
authored
Oct 08, 2018
by
Kai Chen
Browse files
Merge branch 'dev' into single-stage
parents
20e75c22
01a03aab
Changes
44
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
17 deletions
+22
-17
configs/r50_fpn_frcnn_1x.py
configs/r50_fpn_frcnn_1x.py
+2
-2
configs/r50_fpn_maskrcnn_1x.py
configs/r50_fpn_maskrcnn_1x.py
+2
-2
configs/r50_fpn_rpn_1x.py
configs/r50_fpn_rpn_1x.py
+2
-2
mmdet/core/__init__.py
mmdet/core/__init__.py
+4
-5
mmdet/core/anchor/anchor_target.py
mmdet/core/anchor/anchor_target.py
+1
-1
mmdet/core/bbox/__init__.py
mmdet/core/bbox/__init__.py
+0
-0
mmdet/core/bbox/bbox_target.py
mmdet/core/bbox/bbox_target.py
+0
-0
mmdet/core/bbox/geometry.py
mmdet/core/bbox/geometry.py
+0
-0
mmdet/core/bbox/sampling.py
mmdet/core/bbox/sampling.py
+6
-3
mmdet/core/bbox/transforms.py
mmdet/core/bbox/transforms.py
+0
-0
mmdet/core/evaluation/__init__.py
mmdet/core/evaluation/__init__.py
+0
-0
mmdet/core/evaluation/bbox_overlaps.py
mmdet/core/evaluation/bbox_overlaps.py
+0
-0
mmdet/core/evaluation/class_names.py
mmdet/core/evaluation/class_names.py
+0
-0
mmdet/core/evaluation/coco_utils.py
mmdet/core/evaluation/coco_utils.py
+0
-0
mmdet/core/evaluation/eval_hooks.py
mmdet/core/evaluation/eval_hooks.py
+1
-2
mmdet/core/evaluation/mean_ap.py
mmdet/core/evaluation/mean_ap.py
+0
-0
mmdet/core/evaluation/recall.py
mmdet/core/evaluation/recall.py
+0
-0
mmdet/core/loss/__init__.py
mmdet/core/loss/__init__.py
+0
-0
mmdet/core/loss/losses.py
mmdet/core/loss/losses.py
+0
-0
mmdet/core/mask/__init__.py
mmdet/core/mask/__init__.py
+4
-0
No files found.
tools/
configs/r50_fpn_frcnn_1x.py
→
configs/r50_fpn_frcnn_1x.py
View file @
7eb02d29
...
...
@@ -79,7 +79,7 @@ test_cfg = dict(
rcnn
=
dict
(
score_thr
=
0.05
,
max_per_img
=
100
,
nms_thr
=
0.5
))
# dataset settings
dataset_type
=
'CocoDataset'
data_root
=
'
../
data/coco/'
data_root
=
'data/coco/'
img_norm_cfg
=
dict
(
mean
=
[
123.675
,
116.28
,
103.53
],
std
=
[
58.395
,
57.12
,
57.375
],
to_rgb
=
True
)
data
=
dict
(
...
...
@@ -140,7 +140,7 @@ log_config = dict(
# runtime settings
total_epochs
=
12
device_ids
=
range
(
8
)
dist_params
=
dict
(
backend
=
'
gloo
'
)
dist_params
=
dict
(
backend
=
'
nccl
'
)
log_level
=
'INFO'
work_dir
=
'./work_dirs/fpn_faster_rcnn_r50_1x'
load_from
=
None
...
...
tools/
configs/r50_fpn_maskrcnn_1x.py
→
configs/r50_fpn_maskrcnn_1x.py
View file @
7eb02d29
...
...
@@ -92,7 +92,7 @@ test_cfg = dict(
score_thr
=
0.05
,
max_per_img
=
100
,
nms_thr
=
0.5
,
mask_thr_binary
=
0.5
))
# dataset settings
dataset_type
=
'CocoDataset'
data_root
=
'
../
data/coco/'
data_root
=
'data/coco/'
img_norm_cfg
=
dict
(
mean
=
[
123.675
,
116.28
,
103.53
],
std
=
[
58.395
,
57.12
,
57.375
],
to_rgb
=
True
)
data
=
dict
(
...
...
@@ -153,7 +153,7 @@ log_config = dict(
# runtime settings
total_epochs
=
12
device_ids
=
range
(
8
)
dist_params
=
dict
(
backend
=
'
gloo
'
)
dist_params
=
dict
(
backend
=
'
nccl
'
)
log_level
=
'INFO'
work_dir
=
'./work_dirs/fpn_mask_rcnn_r50_1x'
load_from
=
None
...
...
tools/
configs/r50_fpn_rpn_1x.py
→
configs/r50_fpn_rpn_1x.py
View file @
7eb02d29
...
...
@@ -50,7 +50,7 @@ test_cfg = dict(
min_bbox_size
=
0
))
# dataset settings
dataset_type
=
'CocoDataset'
data_root
=
'
../
data/coco/'
data_root
=
'data/coco/'
img_norm_cfg
=
dict
(
mean
=
[
123.675
,
116.28
,
103.53
],
std
=
[
58.395
,
57.12
,
57.375
],
to_rgb
=
True
)
data
=
dict
(
...
...
@@ -110,7 +110,7 @@ log_config = dict(
# yapf:enable
# runtime settings
total_epochs
=
12
dist_params
=
dict
(
backend
=
'
gloo
'
)
dist_params
=
dict
(
backend
=
'
nccl
'
)
log_level
=
'INFO'
work_dir
=
'./work_dirs/fpn_rpn_r50_1x'
load_from
=
None
...
...
mmdet/core/__init__.py
View file @
7eb02d29
from
.anchor
import
*
# noqa: F401, F403
from
.bbox_ops
import
*
# noqa: F401, F403
from
.mask_ops
import
*
# noqa: F401, F403
from
.losses
import
*
# noqa: F401, F403
from
.eval
import
*
# noqa: F401, F403
from
.parallel
import
*
# noqa: F401, F403
from
.bbox
import
*
# noqa: F401, F403
from
.mask
import
*
# noqa: F401, F403
from
.loss
import
*
# noqa: F401, F403
from
.evaluation
import
*
# noqa: F401, F403
from
.post_processing
import
*
# noqa: F401, F403
from
.utils
import
*
# noqa: F401, F403
mmdet/core/anchor/anchor_target.py
View file @
7eb02d29
import
torch
from
..bbox
_ops
import
bbox_assign
,
bbox2delta
,
bbox_sampling
from
..bbox
import
bbox_assign
,
bbox2delta
,
bbox_sampling
from
..utils
import
multi_apply
...
...
mmdet/core/bbox
_ops
/__init__.py
→
mmdet/core/bbox/__init__.py
View file @
7eb02d29
File moved
mmdet/core/bbox
_ops
/bbox_target.py
→
mmdet/core/bbox/bbox_target.py
View file @
7eb02d29
File moved
mmdet/core/bbox
_ops
/geometry.py
→
mmdet/core/bbox/geometry.py
View file @
7eb02d29
File moved
mmdet/core/bbox
_ops
/sampling.py
→
mmdet/core/bbox/sampling.py
View file @
7eb02d29
...
...
@@ -5,6 +5,11 @@ from .geometry import bbox_overlaps
def
random_choice
(
gallery
,
num
):
"""Random select some elements from the gallery.
It seems that Pytorch's implementation is slower than numpy so we use numpy
to randperm the indices.
"""
assert
len
(
gallery
)
>=
num
if
isinstance
(
gallery
,
list
):
gallery
=
np
.
array
(
gallery
)
...
...
@@ -12,9 +17,7 @@ def random_choice(gallery, num):
np
.
random
.
shuffle
(
cands
)
rand_inds
=
cands
[:
num
]
if
not
isinstance
(
gallery
,
np
.
ndarray
):
rand_inds
=
torch
.
from_numpy
(
rand_inds
).
long
()
if
gallery
.
is_cuda
:
rand_inds
=
rand_inds
.
cuda
(
gallery
.
get_device
())
rand_inds
=
torch
.
from_numpy
(
rand_inds
).
long
().
to
(
gallery
.
device
)
return
gallery
[
rand_inds
]
...
...
mmdet/core/bbox
_ops
/transforms.py
→
mmdet/core/bbox/transforms.py
View file @
7eb02d29
File moved
mmdet/core/eval/__init__.py
→
mmdet/core/eval
uation
/__init__.py
View file @
7eb02d29
File moved
mmdet/core/eval/bbox_overlaps.py
→
mmdet/core/eval
uation
/bbox_overlaps.py
View file @
7eb02d29
File moved
mmdet/core/eval/class_names.py
→
mmdet/core/eval
uation
/class_names.py
View file @
7eb02d29
File moved
mmdet/core/eval/coco_utils.py
→
mmdet/core/eval
uation
/coco_utils.py
View file @
7eb02d29
File moved
mmdet/core/eval/eval_hooks.py
→
mmdet/core/eval
uation
/eval_hooks.py
View file @
7eb02d29
...
...
@@ -7,13 +7,12 @@ import mmcv
import
numpy
as
np
import
torch
from
mmcv.runner
import
Hook
,
obj_from_dict
from
mmcv.parallel
import
scatter
,
collate
from
pycocotools.cocoeval
import
COCOeval
from
torch.utils.data
import
Dataset
from
.coco_utils
import
results2json
,
fast_eval_recall
from
..parallel
import
scatter
from
mmdet
import
datasets
from
mmdet.datasets.loader
import
collate
class
DistEvalHook
(
Hook
):
...
...
mmdet/core/eval/mean_ap.py
→
mmdet/core/eval
uation
/mean_ap.py
View file @
7eb02d29
File moved
mmdet/core/eval/recall.py
→
mmdet/core/eval
uation
/recall.py
View file @
7eb02d29
File moved
mmdet/core/loss
es
/__init__.py
→
mmdet/core/loss/__init__.py
View file @
7eb02d29
File moved
mmdet/core/loss
es
/losses.py
→
mmdet/core/loss/losses.py
View file @
7eb02d29
File moved
mmdet/core/mask/__init__.py
0 → 100644
View file @
7eb02d29
from
.utils
import
split_combined_polys
from
.mask_target
import
mask_target
__all__
=
[
'split_combined_polys'
,
'mask_target'
]
Prev
1
2
3
Next
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