Skip to content

Commit f145e9d

Browse files
committed
fix_box_loss_error
1 parent 86cd5bf commit f145e9d

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)