diffusers
365e8461 - [SDXL DreamBooth LoRA] add support for text encoder fine-tuning (#4097)

Commit
1 year ago
[SDXL DreamBooth LoRA] add support for text encoder fine-tuning (#4097) * Allow low precision sd xl * finish * finish * feat: initial draft for supporting text encoder lora finetuning for SDXL DreamBooth * fix: variable assignments. * add: autocast block. * add debugging * vae dtype hell * fix: vae dtype hell. * fix: vae dtype hell 3. * clean up * lora text encoder loader. * fix: unwrapping models. * add: tests. * docs. * handle unexpected keys. * fix vae dtype in the final inference. * fix scope problem. * fix: save_model_card args. * initialize: prefix to None. * fix: dtype issues. * apply gixes. * debgging. * debugging * debugging * debugging * debugging * debugging * add: fast tests. * pre-tokenize. * address: will's comments. * fix: loader and tests. * fix: dataloader. * simplify dataloader. * length. * simplification. * make style && make quality * simplify state_dict munging * fix: tests. * fix: state_dict packing. * Apply suggestions from code review Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com> --------- Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
Author
Parents
  • examples
    • dreambooth
      • File
        README_sdxl.md
      • File
        train_dreambooth_lora_sdxl.py
    • File
      test_examples.py
  • src/diffusers
    • File
      loaders.py
    • pipelines/stable_diffusion_xl
      • File
        pipeline_stable_diffusion_xl.py
  • tests/models
    • File
      test_lora_layers.py