Skip to content

Commit

Permalink
fixed progress bar bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxTeselkin committed Oct 15, 2024
1 parent 587afe6 commit 7a77253
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion train/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2676,7 +2676,9 @@ def on_results_file_changed(filepath, pbar):
watcher = Watcher(
watch_file,
on_results_file_changed,
progress_bar_epochs(message="Epochs:", total=n_epochs_input.get_value()),
progress_bar_epochs(
message="Epochs:", total=state.get("n_epochs", n_epochs_input.get_value())
),
)
# train model and upload best checkpoints to team files
device = 0 if torch.cuda.is_available() else "cpu"
Expand Down Expand Up @@ -2854,6 +2856,8 @@ def train_model():
train_thread.start()
train_thread.join()
watcher.running = False
progress_bar_iters.hide()
progress_bar_epochs.hide()

# visualize model predictions
making_training_vis_f.show()
Expand Down

0 comments on commit 7a77253

Please sign in to comment.