summaryrefslogtreecommitdiffstats
path: root/train_dreambooth.py
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-02 17:02:41 +0100
committerVolpeon <git@volpeon.ink>2023-01-02 17:02:41 +0100
commit9d279587b82260886480ef45844c25c50bf3371d (patch)
treed19d375614dfebe25b8821a23a49c1d678c5d684 /train_dreambooth.py
parentUpdate (diff)
downloadtextual-inversion-diff-9d279587b82260886480ef45844c25c50bf3371d.tar.gz
textual-inversion-diff-9d279587b82260886480ef45844c25c50bf3371d.tar.bz2
textual-inversion-diff-9d279587b82260886480ef45844c25c50bf3371d.zip
Fix
Diffstat (limited to 'train_dreambooth.py')
-rw-r--r--train_dreambooth.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/train_dreambooth.py b/train_dreambooth.py
index c0fe328..05f6cb5 100644
--- a/train_dreambooth.py
+++ b/train_dreambooth.py
@@ -1068,14 +1068,13 @@ def main():
1068 # Create the pipeline using using the trained modules and save it. 1068 # Create the pipeline using using the trained modules and save it.
1069 if accelerator.is_main_process: 1069 if accelerator.is_main_process:
1070 print("Finished! Saving final checkpoint and resume state.") 1070 print("Finished! Saving final checkpoint and resume state.")
1071 checkpointer.save_samples(0, args.sample_steps) 1071 checkpointer.save_samples(global_step, args.sample_steps)
1072 checkpointer.save_model() 1072 checkpointer.save_model()
1073 accelerator.end_training() 1073 accelerator.end_training()
1074 1074
1075 except KeyboardInterrupt: 1075 except KeyboardInterrupt:
1076 if accelerator.is_main_process: 1076 if accelerator.is_main_process:
1077 print("Interrupted, saving checkpoint and resume state...") 1077 print("Interrupted, saving checkpoint and resume state...")
1078 checkpointer.save_samples(0, args.sample_steps)
1079 checkpointer.save_model() 1078 checkpointer.save_model()
1080 accelerator.end_training() 1079 accelerator.end_training()
1081 quit() 1080 quit()