"examples/multigpu/vscode:/vscode.git/clone" did not exist on "0a42d863b740e3e13d79ee081d3792a4a04aed87"
Unverified Commit 573d4c33 authored by Kai Chen's avatar Kai Chen Committed by GitHub
Browse files

Merge pull request #73 from hellock/hotfix

bug fix for init sampler during testing
parents 5f44ba8a d6abbef4
......@@ -25,13 +25,13 @@ def build_dataloader(dataset,
batch_size = imgs_per_gpu
num_workers = workers_per_gpu
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
num_workers = num_gpus * workers_per_gpu
if not kwargs.get('shuffle', True):
sampler = None
data_loader = DataLoader(
dataset,
batch_size=batch_size,
......
......@@ -11,7 +11,7 @@ class ConvFCBBoxHead(BBoxHead):
/-> cls convs -> cls fcs -> cls
shared convs -> shared fcs
\-> reg convs -> reg fcs -> reg
"""
""" # noqa: W605
def __init__(self,
num_shared_convs=0,
......
......@@ -30,7 +30,7 @@ class RPNHead(nn.Module):
target_stds (Iterable): Std values of regression targets.
use_sigmoid_cls (bool): Whether to use sigmoid loss for classification.
(softmax by default)
"""
""" # noqa: W605
def __init__(self,
in_channels,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment