Skip to content

Commit 26c0cd5

Browse files
committed
fix bug
1 parent 67b4ff1 commit 26c0cd5

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

data/factory.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
from .egohand import HandDetection
9-
from .wider_face import WIDERDetection
9+
from .widerface import WIDERDetection
1010
from .vochead import VOCDetection, VOCAnnotationTransform
1111
from .config import cfg
1212

@@ -26,12 +26,10 @@ def dataset_factory(dataset):
2626
target_transform=VOCAnnotationTransform(),
2727
mode='train',
2828
dataset_name='VOCPartAB')
29-
val_dataset = VOCDetection(cfg.HEAD.DIR, image_sets=[('PartA', 'test'),
30-
('PartB', 'test')],
29+
val_dataset = VOCDetection(cfg.HEAD.DIR, image_sets=[('PartA', 'test'), ('PartB', 'test')],
3130
target_transform=VOCAnnotationTransform(),
3231
mode='test',
3332
dataset_name='VOCPartAB')
34-
print(len(train_dataset))
3533
return train_dataset, val_dataset
3634

3735

File renamed without changes.

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def str2bool(v):
3131
description='S3FD face Detector Training With Pytorch')
3232
train_set = parser.add_mutually_exclusive_group()
3333
parser.add_argument('--dataset',
34-
default='face',
34+
default='hand',
3535
choices=['hand', 'face', 'head'],
3636
help='Train target')
3737
parser.add_argument('--basenet',

0 commit comments

Comments
 (0)