Skip to content

Commit

Permalink
Enhance expand scale to 6 and reduce overlap_thres to 0.4. Boost mAP …
Browse files Browse the repository at this point in the history
…to 0.7404, bird to 0.6951
  • Loading branch information
RobinDong committed Jun 6, 2019
1 parent d662a9e commit 8dd17cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion train.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def train():


optimizer = optim.SGD(net.parameters(), lr=args.lr, momentum=args.momentum, optimizer = optim.SGD(net.parameters(), lr=args.lr, momentum=args.momentum,
weight_decay=args.weight_decay) weight_decay=args.weight_decay)
criterion = MultiBoxLoss(cfg['num_classes'], 0.5, True, 0, True, 3, 0.5, criterion = MultiBoxLoss(cfg['num_classes'], 0.4, True, 0, True, 3, 0.5,
False, args.cuda) False, args.cuda)


net.train() net.train()
Expand Down
2 changes: 1 addition & 1 deletion utils/augmentations.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def __call__(self, image, boxes, labels):
return image, boxes, labels return image, boxes, labels


height, width, depth = image.shape height, width, depth = image.shape
ratio = random.uniform(1, 4) ratio = random.uniform(1, 6)
left = random.uniform(0, width*ratio - width) left = random.uniform(0, width*ratio - width)
top = random.uniform(0, height*ratio - height) top = random.uniform(0, height*ratio - height)


Expand Down

0 comments on commit 8dd17cd

Please sign in to comment.