Skip to content

Commit

Permalink
log_interval += 1 to ensure sync with epochs
Browse files Browse the repository at this point in the history
  • Loading branch information
kalomaze committed Jul 23, 2023
1 parent bf8ba1e commit 62ab177
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions infer-web.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,8 @@ def set_log_interval(exp_dir, batch_size12):
if wav_files:
sample_size = len(wav_files)
log_interval = math.ceil(sample_size / batch_size12)
if log_interval > 1:
log_interval += 1

return log_interval

Expand Down

0 comments on commit 62ab177

Please sign in to comment.