diff --git a/utils/loss.py b/utils/loss.py index 5fc73eaf0e..a5b72885c7 100644 --- a/utils/loss.py +++ b/utils/loss.py @@ -682,7 +682,7 @@ def build_targets(self, p, targets, imgs): all_gj.append(gj) all_gi.append(gi) all_anch.append(anch[i][idx]) - from_which_layer.append((torch.ones(size=(len(b),)) * i).to(device) + from_which_layer.append((torch.ones(size=(len(b),)) * i).to(device)) fg_pred = pi[b, a, gj, gi] p_obj.append(fg_pred[:, 4:5])