mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
Fixed progress bar output for epoch
This commit is contained in:
parent
ea00c1624b
commit
6ad3a53e36
@ -228,7 +228,7 @@ def train_embedding(embedding_name, learn_rate, data_root, log_directory, traini
|
|||||||
optimizer.step()
|
optimizer.step()
|
||||||
|
|
||||||
epoch_num = math.floor(embedding.step / epoch_len)
|
epoch_num = math.floor(embedding.step / epoch_len)
|
||||||
epoch_step = embedding.step - (epoch_num * epoch_len)
|
epoch_step = embedding.step - (epoch_num * epoch_len) + 1
|
||||||
|
|
||||||
pbar.set_description(f"[Epoch {epoch_num}: {epoch_step}/{epoch_len}]loss: {losses.mean():.7f}")
|
pbar.set_description(f"[Epoch {epoch_num}: {epoch_step}/{epoch_len}]loss: {losses.mean():.7f}")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user