Skip to content

Commit db89776

Browse files
Merge pull request #313 from venkatram-dev/fix_box_loss_error
fix_box_loss_error
2 parents 66bbe0d + c4d65ac commit db89776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roboflow/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ def live_plot(epochs, mAP, loss, title=""):
413413
mAP = np.array([float(epoch["mAP"]) for epoch in models["roboflow-train"]["epochs"]])
414414
loss = np.array(
415415
[
416-
(float(epoch["box_loss"]) + float(epoch["class_loss"]) + float(epoch["obj_loss"]))
416+
sum(float(epoch[key]) for key in ["box_loss", "class_loss", "obj_loss"] if key in epoch)
417417
for epoch in models["roboflow-train"]["epochs"]
418418
]
419419
)

0 commit comments

Comments
 (0)