1. 18 Jul, 2023 1 commit
    • Sayak Paul's avatar
      [Core] add: controlnet support for SDXL (#4038) · 3eb498e7
      Sayak Paul authored
      * add: controlnet sdxl.
      
      * modifications to controlnet.
      
      * run styling.
      
      * add: __init__.pys
      
      * incorporate https://github.com/huggingface/diffusers/pull/4019
      
       changes.
      
      * run make fix-copies.
      
      * resize the conditioning images.
      
      * remove autocast.
      
      * run styling.
      
      * disable autocast.
      
      * debugging
      
      * device placement.
      
      * back to autocast.
      
      * remove comment.
      
      * save some memory by reusing the vae and unet in the pipeline.
      
      * apply styling.
      
      * Allow low precision sd xl
      
      * finish
      
      * finish
      
      * changes to accommodate the improved VAE.
      
      * modifications to how we handle vae encoding in the training.
      
      * make style
      
      * make existing controlnet fast tests pass.
      
      * change vae checkpoint cli arg.
      
      * fix: vae pretrained paths.
      
      * fix: steps in get_scheduler().
      
      * debugging.
      
      * debugging./
      
      * fix: weight conversion.
      
      * add: docs.
      
      * add: limited tests./
      
      * add: datasets to the requirements.
      
      * update docstrings and incorporate the usage of watermarking.
      
      * incorporate fix from #4083
      
      * fix watermarking dependency handling.
      
      * run make-fix-copies.
      
      * Empty-Commit
      
      * Update requirements_sdxl.txt
      
      * remove vae upcasting part.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * run make style
      
      * run make fix-copies.
      
      * disable suppot for multicontrolnet.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * run make fix-copies.
      
      * dtyle/.
      
      * fix-copies.
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      3eb498e7
  2. 18 Apr, 2023 1 commit
  3. 12 Apr, 2023 1 commit
    • Andreas Steiner's avatar
      Adds profiling flags, computes train metrics average. (#3053) · d06e0694
      Andreas Steiner authored
      * WIP controlnet training
      
      - bugfix --streaming
      - bugfix running report_to!='wandb'
      - adds memory profile before validation
      
      * Adds final logging statement.
      
      * Sets train epochs to 11.
      
      Looking at a longer ~16ep run, we see only good validation images
      after ~11ep:
      
      https://wandb.ai/andsteing/controlnet_fill50k/runs/3j2hx6n8
      
      
      
      * Removes --logging_dir (it's not used).
      
      * Adds --profile flags.
      
      * Updates --output_dir=runs/fill-circle-{timestamp}.
      
      * Compute mean of `train_metrics`.
      
      Previously `train_metrics[-1]` was logged, resulting in very bumpy train
      metrics.
      
      * Improves logging a bit.
      
      - adds l2_grads gradient norm logging
      - adds steps_per_sec
      - sets walltime as x coordinate of train/step
      - logs controlnet_params config
      
      * Adds --ccache (doesn't really help though).
      
      * minor fix in controlnet flax example (#2986)
      
      * fix the error when push_to_hub but not log validation
      
      * contronet_from_pt & controlnet_revision
      
      * add intermediate checkpointing to the guide
      
      * Bugfix --profile_steps
      
      * Sets `RACKER_PROJECT_NAME='controlnet_fill50k'`.
      
      * Logs fractional epoch.
      
      * Adds relative `walltime` metric.
      
      * Adds `StepTraceAnnotation` and uses `global_step` insetad of `step`.
      
      * Applied `black`.
      
      * Streamlines commands in README a bit.
      
      * Removes `--ccache`.
      
      This makes only a very small difference (~1 min) with this model size, so removing
      the option introduced in cdb3cc.
      
      * Re-ran `black`.
      
      * Update examples/controlnet/README.md
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Converts spaces to tab.
      
      * Removes repeated args.
      
      * Skips first step (compilation) in profiling
      
      * Updates README with profiling instructions.
      
      * Unifies tabs/spaces in README.
      
      * Re-ran style & quality.
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      d06e0694
  4. 10 Apr, 2023 1 commit
  5. 06 Apr, 2023 1 commit
  6. 29 Mar, 2023 1 commit
  7. 28 Mar, 2023 1 commit
  8. 15 Mar, 2023 1 commit