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
573d4c33
Unverified
Commit
573d4c33
authored
Oct 25, 2018
by
Kai Chen
Committed by
GitHub
Oct 25, 2018
Browse files
Merge pull request #73 from hellock/hotfix
bug fix for init sampler during testing
parents
5f44ba8a
d6abbef4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
mmdet/datasets/loader/build_loader.py
mmdet/datasets/loader/build_loader.py
+4
-4
mmdet/models/bbox_heads/convfc_bbox_head.py
mmdet/models/bbox_heads/convfc_bbox_head.py
+1
-1
mmdet/models/rpn_heads/rpn_head.py
mmdet/models/rpn_heads/rpn_head.py
+1
-1
No files found.
mmdet/datasets/loader/build_loader.py
View file @
573d4c33
...
@@ -25,13 +25,13 @@ def build_dataloader(dataset,
...
@@ -25,13 +25,13 @@ def build_dataloader(dataset,
batch_size
=
imgs_per_gpu
batch_size
=
imgs_per_gpu
num_workers
=
workers_per_gpu
num_workers
=
workers_per_gpu
else
:
else
:
sampler
=
GroupSampler
(
dataset
,
imgs_per_gpu
)
if
not
kwargs
.
get
(
'shuffle'
,
True
):
sampler
=
None
else
:
sampler
=
GroupSampler
(
dataset
,
imgs_per_gpu
)
batch_size
=
num_gpus
*
imgs_per_gpu
batch_size
=
num_gpus
*
imgs_per_gpu
num_workers
=
num_gpus
*
workers_per_gpu
num_workers
=
num_gpus
*
workers_per_gpu
if
not
kwargs
.
get
(
'shuffle'
,
True
):
sampler
=
None
data_loader
=
DataLoader
(
data_loader
=
DataLoader
(
dataset
,
dataset
,
batch_size
=
batch_size
,
batch_size
=
batch_size
,
...
...
mmdet/models/bbox_heads/convfc_bbox_head.py
View file @
573d4c33
...
@@ -11,7 +11,7 @@ class ConvFCBBoxHead(BBoxHead):
...
@@ -11,7 +11,7 @@ class ConvFCBBoxHead(BBoxHead):
/-> cls convs -> cls fcs -> cls
/-> cls convs -> cls fcs -> cls
shared convs -> shared fcs
shared convs -> shared fcs
\-> reg convs -> reg fcs -> reg
\-> reg convs -> reg fcs -> reg
"""
"""
# noqa: W605
def
__init__
(
self
,
def
__init__
(
self
,
num_shared_convs
=
0
,
num_shared_convs
=
0
,
...
...
mmdet/models/rpn_heads/rpn_head.py
View file @
573d4c33
...
@@ -30,7 +30,7 @@ class RPNHead(nn.Module):
...
@@ -30,7 +30,7 @@ class RPNHead(nn.Module):
target_stds (Iterable): Std values of regression targets.
target_stds (Iterable): Std values of regression targets.
use_sigmoid_cls (bool): Whether to use sigmoid loss for classification.
use_sigmoid_cls (bool): Whether to use sigmoid loss for classification.
(softmax by default)
(softmax by default)
"""
"""
# noqa: W605
def
__init__
(
self
,
def
__init__
(
self
,
in_channels
,
in_channels
,
...
...
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