Merge NMS update
This commit is contained in:
parent
dad59220f1
commit
01ee0c5e95
|
@ -442,7 +442,7 @@ def compute_loss(p, targets, model): # predictions, targets, model
|
||||||
def build_targets(model, targets):
|
def build_targets(model, targets):
|
||||||
# targets = [image, class, x, y, w, h]
|
# targets = [image, class, x, y, w, h]
|
||||||
|
|
||||||
nt = len(targets)
|
nt = targets.shape[0]
|
||||||
tcls, tbox, indices, av = [], [], [], []
|
tcls, tbox, indices, av = [], [], [], []
|
||||||
multi_gpu = type(model) in (nn.parallel.DataParallel, nn.parallel.DistributedDataParallel)
|
multi_gpu = type(model) in (nn.parallel.DataParallel, nn.parallel.DistributedDataParallel)
|
||||||
reject, use_all_anchors = True, True
|
reject, use_all_anchors = True, True
|
||||||
|
|
Loading…
Reference in New Issue