Skip to content

Commit

Permalink
more ce > foc renaming
Browse files Browse the repository at this point in the history
see commit 4f87bad
  • Loading branch information
alanngnet committed Nov 3, 2024
1 parent 22e565e commit 3b05496
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ def _test_logging(self, device):
expected_calls = [
# 1 because the step is logged for csi
unittest.mock.call("csi/lr", unittest.mock.ANY, 1),
unittest.mock.call("csi/ce_loss", unittest.mock.ANY, 1),
unittest.mock.call("csi/foc_loss", unittest.mock.ANY, 1),
unittest.mock.call("csi/tri_loss", unittest.mock.ANY, 1),
unittest.mock.call("csi/total", unittest.mock.ANY, 1),
# 0 because the epoch is logged for the rest
unittest.mock.call("csi_test/ce_loss", unittest.mock.ANY, 0),
unittest.mock.call("csi_test/foc_loss", unittest.mock.ANY, 0),
unittest.mock.call("csi_test/tri_loss", unittest.mock.ANY, 0),
unittest.mock.call("mAP/covers80", unittest.mock.ANY, 0),
unittest.mock.call("hit_rate/covers80", unittest.mock.ANY, 0),
Expand Down
2 changes: 1 addition & 1 deletion tools/train_tune.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_final_metrics_from_logs(log_dir, test_name):
ea.Reload()

# Extract the final validation loss and mAP
val_loss = ea.Scalars("csi_val/ce_loss")[-1].value
val_loss = ea.Scalars("csi_val/foc_loss")[-1].value
mAP = ea.Scalars(f"mAP/{test_name}")[-1].value
print(f"Final loss {val_loss}, mAP {mAP}")

Expand Down

0 comments on commit 3b05496

Please sign in to comment.