From cfbc269fd02399b748d6df0f347f3fbc06358de9 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 19 Aug 2019 18:21:15 +0200 Subject: [PATCH] updates --- models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models.py b/models.py index 000f5570..47ec7e9c 100755 --- a/models.py +++ b/models.py @@ -78,7 +78,7 @@ def create_modules(module_defs, img_size): # Initialize preceding Conv2d() bias (https://arxiv.org/pdf/1708.02002.pdf section 3.3) bias = module_list[-1][0].bias.view(len(mask), -1) # 255 to 3x85 bias[:, 4] -= 5.0 # obj - bias[:, 5:] -= 4.0 # cls + bias[:, 5:] -= 5.0 # cls module_list[-1][0].bias = torch.nn.Parameter(bias.view(-1)) # for l in model.yolo_layers: # print pretrained biases