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, ...@@ -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,
......
...@@ -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,
......
...@@ -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,
......
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