We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc1df7a commit 37a2633Copy full SHA for 37a2633
src/f5_tts/scripts/count_max_epoch_precise.py
@@ -20,13 +20,14 @@
20
random_seed=666,
21
drop_residual=False,
22
)
23
+updates_per_epoch = int(len(batch_sampler) / gpus)
24
25
print(
- f"One epoch has {len(batch_sampler) / gpus} updates if gpus={gpus}, with "
26
+ f"One epoch has {updates_per_epoch} updates if gpus={gpus}, with "
27
f"batch_size_per_gpu={batch_size_per_gpu} (frames) & "
28
f"max_samples_per_gpu={max_samples_per_gpu}."
29
30
31
f"If gpus={gpus}, for max_updates={max_updates} "
- f"should set epoch={math.ceil(max_updates / len(batch_sampler) * gpus)}."
32
+ f"should set epoch={math.ceil(max_updates / updates_per_epoch)}."
33
0 commit comments