1. 01 Dec, 2023 1 commit
  2. 30 Nov, 2023 1 commit
  3. 29 Nov, 2023 1 commit
  4. 28 Nov, 2023 1 commit
  5. 27 Nov, 2023 3 commits
  6. 21 Nov, 2023 2 commits
  7. 20 Nov, 2023 4 commits
  8. 15 Nov, 2023 1 commit
  9. 14 Nov, 2023 3 commits
  10. 13 Nov, 2023 2 commits
  11. 11 Nov, 2023 1 commit
  12. 31 Oct, 2023 1 commit
  13. 25 Oct, 2023 2 commits
    • Patrick von Platen's avatar
      make style · d420d713
      Patrick von Platen authored
      d420d713
    • Logan's avatar
      Add a new community pipeline (#5477) · a1fad828
      Logan authored
      
      
      * Add a new community pipeline
      
      examples/community/latent_consistency_img2img.py
      
      which can be called like this
      
      import torch
      from diffusers import DiffusionPipeline
      
      pipe = DiffusionPipeline.from_pretrained(
                      "SimianLuo/LCM_Dreamshaper_v7", custom_pipeline="latent_consistency_txt2img", custom_revision="main")
      
                  # To save GPU memory, torch.float16 can be used, but it may compromise image quality.
      pipe.to(torch_device="cuda", torch_dtype=torch.float32)
      
      img2img=LatentConsistencyModelPipeline_img2img(
          vae=pipe.vae,
          text_encoder=pipe.text_encoder,
          tokenizer=pipe.tokenizer,
          unet=pipe.unet,
          #scheduler=pipe.scheduler,
          scheduler=None,
          safety_checker=None,
          feature_extractor=pipe.feature_extractor,
          requires_safety_checker=False,
      )
      
      img = Image.open("thisismyimage.png")
      
      result = img2img(prompt,img,strength,num_inference_steps=4)
      
      * Apply suggestions from code review
      
      Fix name formatting for scheduler
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      * update readme (and run formatter on latent_consistency_img2img.py)
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      a1fad828
  14. 23 Oct, 2023 1 commit
  15. 18 Oct, 2023 1 commit
  16. 17 Oct, 2023 1 commit
  17. 16 Oct, 2023 1 commit
  18. 02 Oct, 2023 1 commit
  19. 27 Sep, 2023 1 commit
  20. 25 Sep, 2023 2 commits
  21. 19 Sep, 2023 1 commit
  22. 18 Sep, 2023 1 commit
  23. 16 Sep, 2023 1 commit
  24. 15 Sep, 2023 1 commit
    • dotieuthien's avatar
      Fix import in examples (#5048) · 941473a1
      dotieuthien authored
      
      
      * convert tensorrt controlnet
      
      * Fix code quality
      
      * Fix code quality
      
      * Fix code quality
      
      * Fix code quality
      
      * Fix code quality
      
      * Fix code quality
      
      * Fix number controlnet condition
      
      * Add convert SD XL to onnx
      
      * Add convert SD XL to tensorrt
      
      * Add convert SD XL to tensorrt
      
      * Add examples in comments
      
      * Add examples in comments
      
      * Add test onnx controlnet
      
      * Add tensorrt test
      
      * Remove copied
      
      * Move file test to examples/community
      
      * Remove script
      
      * Remove script
      
      * Remove text
      
      * Fix import
      
      ---------
      Co-authored-by: default avatardotieuthien <thien.do@mservice.com.vn>
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      941473a1
  25. 14 Sep, 2023 1 commit
    • UmerHA's avatar
      Add Prompt2Prompt pipeline (#4563) · 169fc4ad
      UmerHA authored
      
      
      * Initial commit P2P
      
      * Replaced CrossAttention, added test skeleton
      
      * bug fixes
      
      * Updated docstring
      
      * Removed unused function
      
      * Created tests
      
      * improved tests
      
      - made fast inference tests faster
      - corrected image shape assertions
      
      * Corrected expected output shape in tests
      
      * small fix: test inputs
      
      * Update tests
      
      - used conditional unet2d
      - set expected image slices
      - edit_kwargs are now not popped, so pipe can be run multiple times
      
      * Fixed bug in int tests
      
      * Fixed tests
      
      * Linting
      
      * Create prompt2prompt.md
      
      * Added to docs toc
      
      * Ran make fix-copies
      
      * Fixed code blocks in docs
      
      * Using same interface as StableDiffusionPipeline
      
      * Fixed small test bug
      
      * Added all options SDPipeline.__call_ has
      
      * Fixed docstring; made __call__ like in SD
      
      * Linting
      
      * Added test for multiple prompts
      
      * Improved docs
      
      * Incorporated feedback
      
      * Reverted formatting on unrelated files
      
      * Moved prompt2prompt to community
      
      - Moved prompt2prompt pipeline from main to community
      - Deleted tests
      - Moved documentation to community and shorted it
      
      * Update src/diffusers/utils/dummy_torch_and_transformers_objects.py
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      169fc4ad
  26. 12 Sep, 2023 1 commit
  27. 11 Sep, 2023 1 commit
    • Dhruv Nair's avatar
      Lazy Import for Diffusers (#4829) · b6e0b016
      Dhruv Nair authored
      
      
      * initial commit
      
      * move modules to import struct
      
      * add dummy objects and _LazyModule
      
      * add lazy import to schedulers
      
      * clean up unused imports
      
      * lazy import on models module
      
      * lazy import for schedulers module
      
      * add lazy import to pipelines module
      
      * lazy import altdiffusion
      
      * lazy import audio diffusion
      
      * lazy import audioldm
      
      * lazy import consistency model
      
      * lazy import controlnet
      
      * lazy import dance diffusion ddim ddpm
      
      * lazy import deepfloyd
      
      * lazy import kandinksy
      
      * lazy imports
      
      * lazy import semantic diffusion
      
      * lazy imports
      
      * lazy import stable diffusion
      
      * move sd output to its own module
      
      * clean up
      
      * lazy import t2iadapter
      
      * lazy import unclip
      
      * lazy import versatile and vq diffsuion
      
      * lazy import vq diffusion
      
      * helper to fetch objects from modules
      
      * lazy import sdxl
      
      * lazy import txt2vid
      
      * lazy import stochastic karras
      
      * fix model imports
      
      * fix bug
      
      * lazy import
      
      * clean up
      
      * clean up
      
      * fixes for tests
      
      * fixes for tests
      
      * clean up
      
      * remove import of torch_utils from utils module
      
      * clean up
      
      * clean up
      
      * fix mistake import statement
      
      * dedicated modules for exporting and loading
      
      * remove testing utils from utils module
      
      * fixes from  merge conflicts
      
      * Update src/diffusers/pipelines/kandinsky2_2/__init__.py
      
      * fix docs
      
      * fix alt diffusion copied from
      
      * fix check dummies
      
      * fix more docs
      
      * remove accelerate import from utils module
      
      * add type checking
      
      * make style
      
      * fix check dummies
      
      * remove torch import from xformers check
      
      * clean up error message
      
      * fixes after upstream merges
      
      * dummy objects fix
      
      * fix tests
      
      * remove unused module import
      
      ---------
      Co-authored-by: default avatarPatrick von Platen <patrick.v.platen@gmail.com>
      b6e0b016
  28. 31 Aug, 2023 1 commit
  29. 30 Aug, 2023 1 commit