Skip to content

Commit

Permalink
Update loss.py (WongKinYiu#1337)
Browse files Browse the repository at this point in the history
Update line 687: add a round bracket which make an error when start training
  • Loading branch information
hungtrieu07 authored Dec 29, 2022
1 parent 45f2c1f commit 48052c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 48052c4

Please sign in to comment.