Update loss.py (#1337)
Update line 687: add a round bracket which make an error when start training
This commit is contained in:
parent
45f2c1fe55
commit
48052c42c4
@ -682,7 +682,7 @@ class ComputeLossOTA:
|
|||||||
all_gj.append(gj)
|
all_gj.append(gj)
|
||||||
all_gi.append(gi)
|
all_gi.append(gi)
|
||||||
all_anch.append(anch[i][idx])
|
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]
|
fg_pred = pi[b, a, gj, gi]
|
||||||
p_obj.append(fg_pred[:, 4:5])
|
p_obj.append(fg_pred[:, 4:5])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user