We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d89d09 commit 6dff127Copy full SHA for 6dff127
examples/unconditional_image_generation/train_unconditional.py
@@ -189,10 +189,9 @@ def transforms(examples):
189
190
if epoch % args.save_model_epochs == 0 or epoch == args.num_epochs - 1:
191
# save the model
192
+ pipeline.save_pretrained(args.output_dir)
193
if args.push_to_hub:
194
repo.push_to_hub(commit_message=f"Epoch {epoch}", blocking=False)
- else:
195
- pipeline.save_pretrained(args.output_dir)
196
accelerator.wait_for_everyone()
197
198
accelerator.end_training()
0 commit comments