Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Fix eval phase idx in tensorboard #754

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classy_vision/tasks/classification_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ def log_phase_end(self, tag):
self.perf_log.append(
{
"tag": tag,
"phase_idx": self.train_phase_idx,
"phase_idx": self.train_phase_idx if self.train else self.eval_phase_idx,
"im_per_sec": im_per_sec,
}
)
Expand Down