d8ahazard / sd_dreambooth_extension

Other
1.85k stars 283 forks source link

Fix saving EMA model #1459

Closed RossM closed 4 months ago

RossM commented 4 months ago

Describe your changes

EMA saving was broken if ema_unet/diffusion_pytorch_model.safetensors already existed. This changes safe_serialization to True and removes the weird workaround in ema_model.save_pretrained.

Issue ticket number and link (if applicable)

Checklist before requesting a review