parent
386835d7ca
commit
4884508110
|
@ -285,7 +285,7 @@ def compute_loss(p, targets): # predictions, targets
|
|||
|
||||
def build_targets(model, targets, pred):
|
||||
# targets = [image, class, x, y, w, h]
|
||||
if isinstance(model, nn.DataParallel):
|
||||
if isinstance(model, nn.parallel.DistributedDataParallel):
|
||||
model = model.module
|
||||
yolo_layers = get_yolo_layers(model)
|
||||
|
||||
|
|
Loading…
Reference in New Issue