1. 05 Jul, 2023 1 commit
    • Pedro Cuenca's avatar
      Add `timestep_spacing` and `steps_offset` to schedulers (#3947) · 07c9a08e
      Pedro Cuenca authored
      
      
      * Add timestep_spacing to DDPM, LMSDiscrete, PNDM.
      
      * Remove spurious line.
      
      * More easy schedulers.
      
      * Add `linspace` to DDIM
      
      * Noise sigma for `trailing`.
      
      * Add timestep_spacing to DEISMultistepScheduler.
      
      Not sure the range is the way it was intended.
      
      * Fix: remove line used to debug.
      
      * Support timestep_spacing in DPMSolverMultistep, DPMSolverSDE, UniPC
      
      * Fix: convert to numpy.
      
      * Use sched. defaults when instantiating from_config
      
      For params not present in the original configuration.
      
      This makes it possible to switch pipeline schedulers even if they use
      different timestep_spacing (or any other param).
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * Missing args in DPMSolverMultistep
      
      * Test: default args not in config
      
      * Style
      
      * Fix scheduler name in test
      
      * Remove duplicated entries
      
      * Add test for solver_type
      
      This test currently fails in main. When switching from DEIS to UniPC,
      solver_type is "logrho" (the default value from DEIS), which gets
      translated to "bh1" by UniPC. This is different to the default value for
      UniPC: "bh2". This is where the translation happens: https://github.com/huggingface/diffusers/blob/36d22d0709dc19776e3016fb3392d0f5578b0ab2/src/diffusers/schedulers/scheduling_unipc_multistep.py#L171
      
      
      
      * UniPC: use same default for solver_type
      
      Fixes a bug when switching from UniPC from another scheduler (i.e.,
      DEIS) that uses a different solver type. The solver is now the same as
      if we had instantiated the scheduler directly.
      
      * do not save use default values
      
      * fix more
      
      * fix all
      
      * fix schedulers
      
      * fix more
      
      * finish for real
      
      * finish for real
      
      * flaky tests
      
      * Update tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py
      
      * Default steps_offset to 0.
      
      * Add missing docstrings
      
      * Apply suggestions from code review
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      07c9a08e
  2. 04 Jul, 2023 2 commits
  3. 03 Jul, 2023 7 commits
    • Patrick von Platen's avatar
      revert automatic chunking (#3934) · 4e898560
      Patrick von Platen authored
      * revert automatic chunking
      
      * Apply suggestions from code review
      
      * revert automatic chunking
      4e898560
    • Patrick von Platen's avatar
      Improve memory text to video (#3930) · 332d2bbe
      Patrick von Platen authored
      
      
      * Improve memory text to video
      
      * Apply suggestions from code review
      
      * add test
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPedro Cuenca <pedro@huggingface.co>
      
      * finish test setup
      
      ---------
      Co-authored-by: default avatarPedro Cuenca <pedro@huggingface.co>
      332d2bbe
    • estelleafl's avatar
      [ldm3d] Update code to be functional with the new checkpoints (#3875) · b8a5dda5
      estelleafl authored
      
      
      * fixed typo
      
      * updated doc to be consistent in naming
      
      * make style/quality
      
      * preprocessing for 4 channels and not 6
      
      * make style
      
      * test for 4c
      
      * make style/quality
      
      * fixed test on cpu
      
      ---------
      Co-authored-by: default avatarAflalo <estellea@isl-iam1.rr.intel.com>
      Co-authored-by: default avatarAflalo <estellea@isl-gpu33.rr.intel.com>
      Co-authored-by: default avatarAflalo <estellea@isl-gpu38.rr.intel.com>
      b8a5dda5
    • Andrés Mauricio Repetto Ferrero's avatar
      Adding better way to define multiple concepts and also validation capabilities. (#3807) · 572d8e20
      Andrés Mauricio Repetto Ferrero authored
      
      
      * - Added validation parameters
      - Changed some parameter descriptions to better explain their use.
      - Fixed a few typos.
      - Added concept_list parameter for better management of multiple subjects
      - changed logic for image validation
      
      * - Fixed bad logic for class data root directories
      
      * Defaulting validation_steps to None for an easier logic
      
      * Fixed multiple validation prompts
      
      * Fixed bug on validation negative prompt
      
      * Changed validation logic for tracker.
      
      * Added uuid for validation image labeling
      
      * Fix error when comparing validation prompts and validation negative prompts
      
      * Improved error message when negative prompts for validation are more than the number of prompts
      
      * - Changed image tracking number from epoch to global_step
      - Added Typing for functions
      
      * Added some validations more when using concept_list parameter and the regular ones.
      
      * Fixed error message
      
      * Added more validations for validation parameters
      
      * Improved messaging for errors
      
      * Fixed validation error for parameters with default values
      
      * - Added train step to image name for validation
      - reformatted code
      
      * - Added train step to image's name for validation
      - reformatted code
      
      * Updated README.md file.
      
      * reverted back original script of train_dreambooth.py
      
      * reverted back original script of train_dreambooth.py
      
      * left one blank line at the eof
      
      * reverted back setup.py
      
      * reverted back setup.py
      
      * added same logic for when parameters for prior preservation are used without enabling the flag while using concept_list parameter.
      
      * Ran black formatter.
      
      * fixed a few strings
      
      * fixed import sort with isort and removed fstrings without placeholder
      
      * fixed import order with ruff (since with isort wasn't ok)
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      572d8e20
    • Patrick von Platen's avatar
      Correct controlnet out of list error (#3928) · 2e8668f0
      Patrick von Platen authored
      * Correct controlnet out of list error
      
      * Apply suggestions from code review
      
      * correct tests
      
      * correct tests
      
      * fix
      
      * test all
      
      * Apply suggestions from code review
      
      * test all
      
      * test all
      
      * Apply suggestions from code review
      
      * Apply suggestions from code review
      
      * fix more tests
      
      * Fix more
      
      * Apply suggestions from code review
      
      * finish
      
      * Apply suggestions from code review
      
      * Update src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py
      
      * finish
      2e8668f0
    • Aisuko's avatar
      fix/doc: no import torch issue (#3923) · b298484f
      Aisuko authored
      
      
      Ffix/doc: no import torch issue
      Signed-off-by: default avatarGitHub <noreply@github.com>
      b298484f
    • Aisuko's avatar
      fix/doc-code: Updating to the latest version parameters (#3924) · f911287c
      Aisuko authored
      
      
      fix/doc-code: update to use the new parameter
      Signed-off-by: default avatarGitHub <noreply@github.com>
      f911287c
  4. 02 Jul, 2023 1 commit
    • Patrick von Platen's avatar
      Add video img2img (#3900) · 62825064
      Patrick von Platen authored
      * Add image to image video
      
      * Improve
      
      * better naming
      
      * make fix copies
      
      * add docs
      
      * finish tests
      
      * trigger tests
      
      * make style
      
      * correct
      
      * finish
      
      * Fix more
      
      * make style
      
      * finish
      62825064
  5. 01 Jul, 2023 1 commit
  6. 30 Jun, 2023 1 commit
    • Steven Liu's avatar
      [docs] Model API (#3562) · 174dcd69
      Steven Liu authored
      * add modelmixin and unets
      
      * remove old model page
      
      * minor fixes
      
      * fix unet2dcondition
      
      * add vqmodel and autoencoderkl
      
      * add rest of models
      
      * fix autoencoderkl path
      
      * fix toctree
      
      * fix toctree again
      
      * apply feedback
      
      * apply feedback
      
      * fix copies
      
      * fix controlnet copy
      
      * fix copies
      174dcd69
  7. 29 Jun, 2023 1 commit
  8. 28 Jun, 2023 6 commits
  9. 26 Jun, 2023 1 commit
  10. 24 Jun, 2023 1 commit
  11. 22 Jun, 2023 6 commits
  12. 21 Jun, 2023 4 commits
  13. 20 Jun, 2023 4 commits
  14. 19 Jun, 2023 1 commit
  15. 16 Jun, 2023 3 commits