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 52e8fdb commit 4dce374Copy full SHA for 4dce374
examples/unconditional_image_generation/train_unconditional.py
@@ -184,10 +184,9 @@ def transforms(examples):
184
185
if epoch % args.save_model_epochs == 0 or epoch == args.num_epochs - 1:
186
# save the model
187
+ pipeline.save_pretrained(args.output_dir)
188
if args.push_to_hub:
189
repo.push_to_hub(commit_message=f"Epoch {epoch}", blocking=False)
- else:
190
- pipeline.save_pretrained(args.output_dir)
191
accelerator.wait_for_everyone()
192
193
accelerator.end_training()
0 commit comments