Skip to content

Commit

Permalink
Small fix for time display
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanSeriesX committed Oct 31, 2023
1 parent d61f213 commit f3675a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions u2net_train.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ def train_epochs(
if sum(training_counts.values()) == 3:
elapsed_time = time.time() - start_time
minutes, seconds = divmod(elapsed_time, 60)
print(f"Expected performance is {minutes:.1f} minutes seconds per epoch.\n")

perf = minutes + (seconds / 60)
print(f"Expected performance is {perf:.1f} minutes per epoch.\n")
# Increment the corresponding training count
training_counts[key] += 1

Expand Down

0 comments on commit f3675a9

Please sign in to comment.