1. 21 May, 2024 1 commit
  2. 20 May, 2024 5 commits
  3. 16 May, 2024 3 commits
  4. 15 May, 2024 1 commit
    • Isamu Isozaki's avatar
      Adding VQGAN Training script (#5483) · d27e996c
      Isamu Isozaki authored
      
      
      * Init commit
      
      * Removed einops
      
      * Added default movq config for training
      
      * Update explanation of prompts
      
      * Fixed inheritance of discriminator and init_tracker
      
      * Fixed incompatible api between muse and here
      
      * Fixed output
      
      * Setup init training
      
      * Basic structure done
      
      * Removed attention for quick tests
      
      * Style fixes
      
      * Fixed vae/vqgan styles
      
      * Removed redefinition of wandb
      
      * Fixed log_validation and tqdm
      
      * Nothing commit
      
      * Added commit loss to lookup_from_codebook
      
      * Update src/diffusers/models/vq_model.py
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Adding perliminary README
      
      * Fixed one typo
      
      * Local changes
      
      * Fixed main issues
      
      * Merging
      
      * Update src/diffusers/models/vq_model.py
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * Testing+Fixed bugs in training script
      
      * Some style fixes
      
      * Added wandb to docs
      
      * Fixed timm test
      
      * get testing suite ready.
      
      * remove return loss
      
      * remove return_loss
      
      * Remove diffs
      
      * Remove diffs
      
      * fix ruff format
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      d27e996c
  5. 14 May, 2024 3 commits
  6. 13 May, 2024 3 commits
  7. 12 May, 2024 2 commits
  8. 10 May, 2024 2 commits
    • Mark Van Aken's avatar
      #7535 Update FloatTensor type hints to Tensor (#7883) · be4afa0b
      Mark Van Aken authored
      * find & replace all FloatTensors to Tensor
      
      * apply formatting
      
      * Update torch.FloatTensor to torch.Tensor in the remaining files
      
      * formatting
      
      * Fix the rest of the places where FloatTensor is used as well as in documentation
      
      * formatting
      
      * Update new file from FloatTensor to Tensor
      be4afa0b
    • Sayak Paul's avatar
      [Core] introduce videoprocessor. (#7776) · 04f4bd54
      Sayak Paul authored
      
      
      * introduce videoprocessor.
      
      * fix quality
      
      * address yiyi's feedback
      
      * fix preprocess_video call.
      
      * video_processor -> image_processor
      
      * fix
      
      * fix more.
      
      * quality
      
      * image_processor -> video_processor
      
      * support List[List[PIL.Image.Image]]
      
      * change to video_processor.
      
      * documentation
      
      * Apply suggestions from code review
      
      * changes
      
      * remove print.
      
      * refactor video processor (part # 7776) (#7861)
      
      * update
      
      * update remove deprecate
      
      * Update src/diffusers/video_processor.py
      
      * update
      
      * Apply suggestions from code review
      
      * deprecate list of 5d for video and list of 4d for image + apply other feedbacks
      
      * up
      
      ---------
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      
      * add doc.
      
      * tensor2vid -> postprocess_video.
      
      * refactor preprocess with preprocess_video
      
      * set default values.
      
      * empty commit
      
      * more refactoring of prepare_latents in animatediff vid2vid
      
      * checking documentation
      
      * remove documentation for now.
      
      * fix animatediff sdxl
      
      * fix test failure [part of video processor PR] (#7905)
      
      up
      
      * remove preceed_with_frames.
      
      * doc
      
      * fix
      
      * fix
      
      * remove video input as a single-frame video.
      
      ---------
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      04f4bd54
  9. 09 May, 2024 5 commits
  10. 08 May, 2024 5 commits
    • Tolga Cangöz's avatar
      Remove dead code and fix f-string issue (#7720) · c1c42698
      Tolga Cangöz authored
      * Remove dead code
      
      * PylancereportGeneralTypeIssues: Strings nested within an f-string cannot use the same quote character as the f-string prior to Python 3.12.
      
      * Remove dead code
      c1c42698
    • Pierre Dulac's avatar
      Allow users to save SDXL LoRA weights for only one text encoder (#7607) · 75aab346
      Pierre Dulac authored
      
      
      SDXL LoRA weights for text encoders should be decoupled on save
      
      The method checks if at least one of unet, text_encoder and
      text_encoder_2 lora weights are passed, which was not reflected in the
      implentation.
      Co-authored-by: default avatarSayak Paul <spsayakpaul@gmail.com>
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      75aab346
    • Aryan's avatar
      [Pipeline] AnimateDiff SDXL (#6721) · 818f7607
      Aryan authored
      
      
      * update conversion script to handle motion adapter sdxl checkpoint
      
      * add animatediff xl
      
      * handle addition_embed_type
      
      * fix output
      
      * update
      
      * add imports
      
      * make fix-copies
      
      * add decode latents
      
      * update docstrings
      
      * add animatediff sdxl to docs
      
      * remove unnecessary lines
      
      * update example
      
      * add test
      
      * revert conv_in conv_out kernel param
      
      * remove unused param addition_embed_type_num_heads
      
      * latest IPAdapter impl
      
      * make fix-copies
      
      * fix return
      
      * add IPAdapterTesterMixin to tests
      
      * fix return
      
      * revert based on suggestion
      
      * add freeinit
      
      * fix test_to_dtype test
      
      * use StableDiffusionMixin instead of different helper methods
      
      * fix progress bar iterations
      
      * apply suggestions from review
      
      * hardcode flip_sin_to_cos and freq_shift
      
      * make fix-copies
      
      * fix ip adapter implementation
      
      * fix last failing test
      
      * make style
      
      * Update docs/source/en/api/pipelines/animatediff.md
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      
      * remove todo
      
      * fix doc-builder errors
      
      ---------
      Co-authored-by: default avatarDhruv Nair <dhruv.nair@gmail.com>
      818f7607
    • Philip Pham's avatar
      Check shape and remove deprecated APIs in scheduling_ddpm_flax.py (#7703) · f29b9348
      Philip Pham authored
      `model_output.shape` may only have rank 1.
      
      There are warnings related to use of random keys.
      
      ```
      tests/schedulers/test_scheduler_flax.py: 13 warnings
        /Users/phillypham/diffusers/src/diffusers/schedulers/scheduling_ddpm_flax.py:268: FutureWarning: normal accepts a single key, but was given a key array of shape (1, 2) != (). Use jax.vmap for batching. In a future JAX version, this will be an error.
          noise = jax.random.normal(split_key, shape=model_output.shape, dtype=self.dtype)
      
      tests/schedulers/test_scheduler_flax.py::FlaxDDPMSchedulerTest::test_betas
        /Users/phillypham/virtualenv/diffusers/lib/python3.9/site-packages/jax/_src/random.py:731: FutureWarning: uniform accepts a single key, but was given a key array of shape (1,) != (). Use jax.vmap for batching. In a future JAX version, this will be an error.
          u = uniform(key, shape, dtype, lo, hi)  # type: ignore[arg-type]
      ```
      f29b9348
    • Tolga Cangöz's avatar
      Fix image upcasting (#7858) · d50baf0c
      Tolga Cangöz authored
      
      
      Fix image's upcasting before `vae.encode()` when using `fp16`
      Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
      d50baf0c
  11. 07 May, 2024 1 commit
  12. 03 May, 2024 2 commits
  13. 02 May, 2024 1 commit
  14. 01 May, 2024 2 commits
  15. 30 Apr, 2024 2 commits
    • Tolga Cangöz's avatar
      Fix CPU offload in docstring (#7827) · b8ccb462
      Tolga Cangöz authored
      Fix cpu offload
      b8ccb462
    • Sayak Paul's avatar
      [Core] introduce _no_split_modules to `ModelMixin` (#6396) · 3fd31eef
      Sayak Paul authored
      * introduce _no_split_modules.
      
      * unnecessary spaces.
      
      * remove unnecessary kwargs and style
      
      * fix: accelerate imports.
      
      * change to _determine_device_map
      
      * add the blocks that have residual connections.
      
      * add: CrossAttnUpBlock2D
      
      * add: testin
      
      * style
      
      * line-spaces
      
      * quality
      
      * add disk offload test without safetensors.
      
      * checking disk offloading percentages.
      
      * change model split
      
      * add: utility for checking multi-gpu requirement.
      
      * model parallelism test
      
      * splits.
      
      * splits.
      
      * splits
      
      * splits.
      
      * splits.
      
      * splits.
      
      * offload folder to test_disk_offload_with_safetensors
      
      * add _no_split_modules
      
      * fix-copies
      3fd31eef
  16. 29 Apr, 2024 2 commits