Skip to content

Commit

Permalink
Skip the final 1 step
Browse files Browse the repository at this point in the history
  • Loading branch information
KohakuBlueleaf committed May 31, 2024
1 parent b2363f1 commit 3eb27ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions train_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,10 @@ def remove_model(old_ckpt_name):

for step, batch in enumerate(skipped_dataloader or train_dataloader):
current_step.value = global_step
if initial_step > 0:
initial_step -= 1
continue

with accelerator.accumulate(training_model):
on_step_start(text_encoder, unet)

Expand Down

0 comments on commit 3eb27ce

Please sign in to comment.