diffusers 0.24.0__tar.gz → 0.25.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (367) hide show
  1. {diffusers-0.24.0/src/diffusers.egg-info → diffusers-0.25.1}/PKG-INFO +87 -13
  2. {diffusers-0.24.0 → diffusers-0.25.1}/README.md +2 -2
  3. {diffusers-0.24.0 → diffusers-0.25.1}/setup.py +8 -27
  4. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/__init__.py +11 -1
  5. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/commands/fp16_safetensors.py +10 -11
  6. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/configuration_utils.py +12 -8
  7. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/dependency_versions_table.py +3 -2
  8. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/experimental/rl/value_guided_sampling.py +1 -1
  9. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/image_processor.py +286 -46
  10. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/ip_adapter.py +11 -9
  11. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/lora.py +198 -60
  12. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/single_file.py +24 -18
  13. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/textual_inversion.py +10 -14
  14. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/unet.py +130 -37
  15. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/__init__.py +18 -12
  16. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/activations.py +9 -6
  17. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/attention.py +137 -16
  18. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/attention_processor.py +133 -46
  19. diffusers-0.25.1/src/diffusers/models/autoencoders/__init__.py +5 -0
  20. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/autoencoder_asym_kl.py +4 -4
  21. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/autoencoder_kl.py +45 -6
  22. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/autoencoder_kl_temporal_decoder.py +8 -8
  23. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/autoencoder_tiny.py +4 -4
  24. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/consistency_decoder_vae.py +14 -14
  25. {diffusers-0.24.0/src/diffusers/models → diffusers-0.25.1/src/diffusers/models/autoencoders}/vae.py +9 -5
  26. diffusers-0.25.1/src/diffusers/models/downsampling.py +338 -0
  27. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/embeddings.py +112 -29
  28. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/modeling_flax_utils.py +12 -7
  29. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/modeling_utils.py +10 -10
  30. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/normalization.py +108 -2
  31. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/resnet.py +15 -699
  32. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/transformer_2d.py +2 -2
  33. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_2d_condition.py +37 -0
  34. diffusers-0.24.0/src/diffusers/models/unet_kandi3.py → diffusers-0.25.1/src/diffusers/models/unet_kandinsky3.py +105 -159
  35. diffusers-0.25.1/src/diffusers/models/upsampling.py +454 -0
  36. diffusers-0.25.1/src/diffusers/models/uvit_2d.py +471 -0
  37. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/vq_model.py +9 -2
  38. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/__init__.py +81 -73
  39. diffusers-0.25.1/src/diffusers/pipelines/amused/__init__.py +62 -0
  40. diffusers-0.25.1/src/diffusers/pipelines/amused/pipeline_amused.py +328 -0
  41. diffusers-0.25.1/src/diffusers/pipelines/amused/pipeline_amused_img2img.py +347 -0
  42. diffusers-0.25.1/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py +378 -0
  43. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/animatediff/pipeline_animatediff.py +38 -10
  44. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/auto_pipeline.py +17 -13
  45. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +27 -10
  46. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +47 -5
  47. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +25 -8
  48. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +4 -6
  49. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +26 -10
  50. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +4 -3
  51. diffusers-0.25.1/src/diffusers/pipelines/deprecated/__init__.py +153 -0
  52. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/alt_diffusion/__init__.py +3 -3
  53. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_alt_diffusion.py +91 -18
  54. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_alt_diffusion_img2img.py +91 -18
  55. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_output.py +1 -1
  56. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/audio_diffusion/__init__.py +1 -1
  57. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/audio_diffusion/mel.py +2 -2
  58. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/audio_diffusion/pipeline_audio_diffusion.py +4 -4
  59. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/latent_diffusion_uncond/__init__.py +1 -1
  60. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py +4 -4
  61. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/pndm/__init__.py +1 -1
  62. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/pndm/pipeline_pndm.py +4 -4
  63. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/repaint/__init__.py +1 -1
  64. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/repaint/pipeline_repaint.py +5 -5
  65. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/score_sde_ve/__init__.py +1 -1
  66. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/score_sde_ve/pipeline_score_sde_ve.py +4 -4
  67. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/__init__.py +6 -6
  68. diffusers-0.24.0/src/diffusers/pipelines/spectrogram_diffusion/continous_encoder.py → diffusers-0.25.1/src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py +2 -2
  69. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/midi_utils.py +1 -1
  70. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/notes_encoder.py +2 -2
  71. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/pipeline_spectrogram_diffusion.py +7 -7
  72. diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.py +55 -0
  73. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_cycle_diffusion.py +16 -11
  74. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_onnx_stable_diffusion_inpaint_legacy.py +6 -6
  75. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_inpaint_legacy.py +11 -11
  76. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_model_editing.py +16 -11
  77. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_paradigms.py +10 -10
  78. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_pix2pix_zero.py +13 -13
  79. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/stochastic_karras_ve/__init__.py +1 -1
  80. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/stochastic_karras_ve/pipeline_stochastic_karras_ve.py +4 -4
  81. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/__init__.py +3 -3
  82. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/modeling_text_unet.py +54 -11
  83. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion.py +4 -4
  84. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py +6 -6
  85. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py +6 -6
  86. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py +6 -6
  87. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/vq_diffusion/__init__.py +3 -3
  88. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/vq_diffusion/pipeline_vq_diffusion.py +5 -5
  89. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky3/__init__.py +4 -4
  90. diffusers-0.25.1/src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py +98 -0
  91. diffusers-0.24.0/src/diffusers/pipelines/kandinsky3/kandinsky3_pipeline.py → diffusers-0.25.1/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +172 -35
  92. diffusers-0.24.0/src/diffusers/pipelines/kandinsky3/kandinsky3img2img_pipeline.py → diffusers-0.25.1/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +228 -34
  93. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +46 -5
  94. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +47 -6
  95. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/onnx_utils.py +8 -5
  96. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/pipeline_flax_utils.py +7 -6
  97. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/pipeline_utils.py +32 -31
  98. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +51 -2
  99. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/__init__.py +1 -72
  100. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +67 -75
  101. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +92 -8
  102. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +92 -8
  103. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +138 -10
  104. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +57 -7
  105. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +3 -0
  106. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +6 -0
  107. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +5 -0
  108. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +5 -0
  109. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_attend_and_excite/__init__.py +48 -0
  110. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_attend_and_excite}/pipeline_stable_diffusion_attend_and_excite.py +5 -2
  111. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_diffedit/__init__.py +48 -0
  112. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_diffedit}/pipeline_stable_diffusion_diffedit.py +2 -3
  113. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py +50 -0
  114. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_gligen}/pipeline_stable_diffusion_gligen.py +2 -2
  115. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_gligen}/pipeline_stable_diffusion_gligen_text_image.py +3 -3
  116. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_k_diffusion/__init__.py +60 -0
  117. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_k_diffusion}/pipeline_stable_diffusion_k_diffusion.py +6 -1
  118. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_ldm3d/__init__.py +48 -0
  119. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_ldm3d}/pipeline_stable_diffusion_ldm3d.py +50 -7
  120. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_panorama/__init__.py +48 -0
  121. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_panorama}/pipeline_stable_diffusion_panorama.py +56 -8
  122. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +58 -6
  123. diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_sag/__init__.py +48 -0
  124. {diffusers-0.24.0/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.1/src/diffusers/pipelines/stable_diffusion_sag}/pipeline_stable_diffusion_sag.py +67 -10
  125. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +97 -15
  126. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +98 -14
  127. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +97 -14
  128. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +7 -5
  129. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +12 -9
  130. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +6 -0
  131. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +5 -0
  132. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +5 -0
  133. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +331 -9
  134. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +468 -9
  135. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unclip/pipeline_unclip.py +2 -1
  136. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +1 -0
  137. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py +1 -1
  138. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +4 -0
  139. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/__init__.py +2 -0
  140. diffusers-0.25.1/src/diffusers/schedulers/scheduling_amused.py +162 -0
  141. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_consistency_models.py +2 -0
  142. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddim_inverse.py +1 -4
  143. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddpm.py +46 -0
  144. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddpm_parallel.py +46 -0
  145. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_deis_multistep.py +13 -1
  146. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_dpmsolver_multistep.py +13 -1
  147. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py +13 -1
  148. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_dpmsolver_sde.py +2 -0
  149. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py +13 -1
  150. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py +58 -0
  151. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_euler_discrete.py +62 -3
  152. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_heun_discrete.py +2 -0
  153. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +2 -0
  154. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py +2 -0
  155. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_lms_discrete.py +2 -0
  156. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_unipc_multistep.py +13 -1
  157. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_utils.py +3 -1
  158. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_utils_flax.py +3 -1
  159. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/training_utils.py +1 -1
  160. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/__init__.py +0 -2
  161. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/constants.py +2 -5
  162. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_pt_objects.py +30 -0
  163. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_transformers_objects.py +45 -0
  164. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dynamic_modules_utils.py +14 -18
  165. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/hub_utils.py +24 -36
  166. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/logging.py +1 -1
  167. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/state_dict_utils.py +8 -0
  168. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/testing_utils.py +199 -1
  169. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/torch_utils.py +3 -3
  170. {diffusers-0.24.0 → diffusers-0.25.1/src/diffusers.egg-info}/PKG-INFO +87 -13
  171. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers.egg-info/SOURCES.txt +73 -54
  172. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers.egg-info/entry_points.txt +0 -1
  173. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers.egg-info/requires.txt +28 -28
  174. {diffusers-0.24.0 → diffusers-0.25.1}/LICENSE +0 -0
  175. {diffusers-0.24.0 → diffusers-0.25.1}/MANIFEST.in +0 -0
  176. {diffusers-0.24.0 → diffusers-0.25.1}/pyproject.toml +0 -0
  177. {diffusers-0.24.0 → diffusers-0.25.1}/setup.cfg +0 -0
  178. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/commands/__init__.py +0 -0
  179. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/commands/diffusers_cli.py +0 -0
  180. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/commands/env.py +0 -0
  181. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/dependency_versions_check.py +0 -0
  182. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/experimental/__init__.py +0 -0
  183. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/experimental/rl/__init__.py +0 -0
  184. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/__init__.py +0 -0
  185. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/lora_conversion_utils.py +0 -0
  186. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/loaders/utils.py +0 -0
  187. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/adapter.py +0 -0
  188. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/attention_flax.py +0 -0
  189. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/controlnet.py +0 -0
  190. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/controlnet_flax.py +0 -0
  191. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/dual_transformer_2d.py +0 -0
  192. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/embeddings_flax.py +0 -0
  193. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/lora.py +0 -0
  194. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/modeling_flax_pytorch_utils.py +0 -0
  195. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/modeling_outputs.py +0 -0
  196. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/modeling_pytorch_flax_utils.py +0 -0
  197. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/prior_transformer.py +0 -0
  198. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/resnet_flax.py +0 -0
  199. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/t5_film_transformer.py +0 -0
  200. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/transformer_temporal.py +0 -0
  201. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_1d.py +0 -0
  202. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_1d_blocks.py +0 -0
  203. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_2d.py +0 -0
  204. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_2d_blocks.py +0 -0
  205. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_2d_blocks_flax.py +0 -0
  206. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_2d_condition_flax.py +0 -0
  207. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_3d_blocks.py +0 -0
  208. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_3d_condition.py +0 -0
  209. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_motion_model.py +0 -0
  210. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/unet_spatio_temporal_condition.py +0 -0
  211. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/models/vae_flax.py +0 -0
  212. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/optimization.py +0 -0
  213. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/animatediff/__init__.py +0 -0
  214. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/audioldm/__init__.py +0 -0
  215. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/audioldm/pipeline_audioldm.py +0 -0
  216. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/audioldm2/__init__.py +0 -0
  217. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py +0 -0
  218. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py +0 -0
  219. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/blip_diffusion/__init__.py +0 -0
  220. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/blip_diffusion/blip_image_processing.py +0 -0
  221. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py +0 -0
  222. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py +0 -0
  223. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py +0 -0
  224. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/consistency_models/__init__.py +0 -0
  225. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py +0 -0
  226. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/__init__.py +0 -0
  227. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/multicontrolnet.py +0 -0
  228. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +0 -0
  229. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py +0 -0
  230. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/dance_diffusion/__init__.py +0 -0
  231. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py +0 -0
  232. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/ddim/__init__.py +0 -0
  233. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/ddim/pipeline_ddim.py +0 -0
  234. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/ddpm/__init__.py +0 -0
  235. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/ddpm/pipeline_ddpm.py +0 -0
  236. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/__init__.py +0 -0
  237. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py +0 -0
  238. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +0 -0
  239. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +0 -0
  240. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +0 -0
  241. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +0 -0
  242. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +0 -0
  243. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/pipeline_output.py +0 -0
  244. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/safety_checker.py +0 -0
  245. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/timesteps.py +0 -0
  246. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/deepfloyd_if/watermark.py +0 -0
  247. {diffusers-0.24.0/src/diffusers/pipelines → diffusers-0.25.1/src/diffusers/pipelines/deprecated}/alt_diffusion/modeling_roberta_series.py +0 -0
  248. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/dit/__init__.py +0 -0
  249. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/dit/pipeline_dit.py +0 -0
  250. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/__init__.py +0 -0
  251. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py +0 -0
  252. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py +0 -0
  253. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py +0 -0
  254. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py +0 -0
  255. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py +0 -0
  256. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky/text_encoder.py +0 -0
  257. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/__init__.py +0 -0
  258. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +0 -0
  259. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py +0 -0
  260. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +0 -0
  261. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py +0 -0
  262. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +0 -0
  263. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +0 -0
  264. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +0 -0
  265. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py +0 -0
  266. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_consistency_models/__init__.py +0 -0
  267. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_diffusion/__init__.py +0 -0
  268. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +0 -0
  269. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py +0 -0
  270. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/musicldm/__init__.py +0 -0
  271. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/musicldm/pipeline_musicldm.py +0 -0
  272. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/paint_by_example/__init__.py +0 -0
  273. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/paint_by_example/image_encoder.py +0 -0
  274. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +0 -0
  275. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/pixart_alpha/__init__.py +0 -0
  276. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/semantic_stable_diffusion/__init__.py +0 -0
  277. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_output.py +0 -0
  278. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py +0 -0
  279. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/shap_e/__init__.py +0 -0
  280. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/shap_e/camera.py +0 -0
  281. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/shap_e/pipeline_shap_e.py +0 -0
  282. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +3 -3
  283. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/shap_e/renderer.py +0 -0
  284. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/clip_image_project_model.py +0 -0
  285. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +0 -0
  286. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py +0 -0
  287. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py +0 -0
  288. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py +0 -0
  289. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py +0 -0
  290. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py +0 -0
  291. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py +0 -0
  292. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_output.py +0 -0
  293. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +0 -0
  294. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +0 -0
  295. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/safety_checker.py +0 -0
  296. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py +0 -0
  297. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py +0 -0
  298. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_safe/__init__.py +0 -0
  299. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_safe/pipeline_output.py +0 -0
  300. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py +0 -0
  301. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/__init__.py +0 -0
  302. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py +0 -0
  303. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py +0 -0
  304. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_diffusion_xl/watermark.py +0 -0
  305. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/stable_video_diffusion/__init__.py +0 -0
  306. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/t2i_adapter/__init__.py +0 -0
  307. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +0 -0
  308. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/__init__.py +0 -0
  309. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_output.py +0 -0
  310. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unclip/__init__.py +0 -0
  311. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unclip/text_proj.py +0 -0
  312. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unidiffuser/__init__.py +0 -0
  313. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py +0 -0
  314. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unidiffuser/modeling_uvit.py +0 -0
  315. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py +0 -0
  316. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/__init__.py +0 -0
  317. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py +0 -0
  318. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py +0 -0
  319. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +0 -0
  320. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +0 -0
  321. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py +0 -0
  322. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/py.typed +0 -0
  323. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/deprecated/__init__.py +0 -0
  324. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/deprecated/scheduling_karras_ve.py +0 -0
  325. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/deprecated/scheduling_sde_vp.py +0 -0
  326. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_consistency_decoder.py +0 -0
  327. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddim.py +0 -0
  328. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddim_flax.py +0 -0
  329. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddim_parallel.py +0 -0
  330. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddpm_flax.py +0 -0
  331. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py +0 -0
  332. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py +0 -0
  333. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_euler_discrete_flax.py +0 -0
  334. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_ipndm.py +0 -0
  335. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_karras_ve_flax.py +0 -0
  336. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_lcm.py +0 -0
  337. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_lms_discrete_flax.py +0 -0
  338. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_pndm.py +0 -0
  339. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_pndm_flax.py +0 -0
  340. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_repaint.py +0 -0
  341. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_sde_ve.py +0 -0
  342. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_sde_ve_flax.py +0 -0
  343. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_unclip.py +0 -0
  344. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/schedulers/scheduling_vq_diffusion.py +0 -0
  345. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/accelerate_utils.py +0 -0
  346. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/deprecation_utils.py +0 -0
  347. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/doc_utils.py +0 -0
  348. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_flax_and_transformers_objects.py +0 -0
  349. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_flax_objects.py +0 -0
  350. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_note_seq_objects.py +0 -0
  351. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_onnx_objects.py +0 -0
  352. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_librosa_objects.py +0 -0
  353. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_scipy_objects.py +0 -0
  354. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_torchsde_objects.py +0 -0
  355. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py +0 -0
  356. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py +0 -0
  357. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py +0 -0
  358. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/export_utils.py +0 -0
  359. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/import_utils.py +0 -0
  360. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/loading_utils.py +0 -0
  361. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/model_card_template.md +0 -0
  362. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/outputs.py +0 -0
  363. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/peft_utils.py +0 -0
  364. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/pil_utils.py +0 -0
  365. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers/utils/versions.py +0 -0
  366. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers.egg-info/dependency_links.txt +0 -0
  367. {diffusers-0.24.0 → diffusers-0.25.1}/src/diffusers.egg-info/top_level.txt +0 -0
@@ -1,13 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: diffusers
3
- Version: 0.24.0
3
+ Version: 0.25.1
4
4
  Summary: State-of-the-art diffusion in PyTorch and JAX.
5
5
  Home-page: https://github.com/huggingface/diffusers
6
- Author: The HuggingFace team
6
+ Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)
7
7
  Author-email: patrick@huggingface.co
8
- License: Apache
8
+ License: Apache 2.0 License
9
9
  Keywords: deep learning diffusion jax pytorch stable diffusion audioldm
10
- Platform: UNKNOWN
11
10
  Classifier: Development Status :: 5 - Production/Stable
12
11
  Classifier: Intended Audience :: Developers
13
12
  Classifier: Intended Audience :: Education
@@ -19,16 +18,93 @@ Classifier: Programming Language :: Python :: 3
19
18
  Classifier: Programming Language :: Python :: 3.8
20
19
  Classifier: Programming Language :: Python :: 3.9
21
20
  Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
22
  Requires-Python: >=3.8.0
23
23
  Description-Content-Type: text/markdown
24
- Provides-Extra: dev
25
- Provides-Extra: docs
26
- Provides-Extra: flax
24
+ License-File: LICENSE
25
+ Requires-Dist: importlib_metadata
26
+ Requires-Dist: filelock
27
+ Requires-Dist: huggingface-hub>=0.20.2
28
+ Requires-Dist: numpy
29
+ Requires-Dist: regex!=2019.12.17
30
+ Requires-Dist: requests
31
+ Requires-Dist: safetensors>=0.3.1
32
+ Requires-Dist: Pillow
27
33
  Provides-Extra: quality
34
+ Requires-Dist: urllib3<=2.0.0; extra == "quality"
35
+ Requires-Dist: isort>=5.5.4; extra == "quality"
36
+ Requires-Dist: ruff==0.1.5; extra == "quality"
37
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "quality"
38
+ Provides-Extra: docs
39
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "docs"
40
+ Provides-Extra: training
41
+ Requires-Dist: accelerate>=0.11.0; extra == "training"
42
+ Requires-Dist: datasets; extra == "training"
43
+ Requires-Dist: protobuf<4,>=3.20.3; extra == "training"
44
+ Requires-Dist: tensorboard; extra == "training"
45
+ Requires-Dist: Jinja2; extra == "training"
46
+ Requires-Dist: peft>=0.6.0; extra == "training"
28
47
  Provides-Extra: test
48
+ Requires-Dist: compel==0.1.8; extra == "test"
49
+ Requires-Dist: GitPython<3.1.19; extra == "test"
50
+ Requires-Dist: datasets; extra == "test"
51
+ Requires-Dist: Jinja2; extra == "test"
52
+ Requires-Dist: invisible-watermark>=0.2.0; extra == "test"
53
+ Requires-Dist: k-diffusion>=0.0.12; extra == "test"
54
+ Requires-Dist: librosa; extra == "test"
55
+ Requires-Dist: omegaconf; extra == "test"
56
+ Requires-Dist: parameterized; extra == "test"
57
+ Requires-Dist: pytest; extra == "test"
58
+ Requires-Dist: pytest-timeout; extra == "test"
59
+ Requires-Dist: pytest-xdist; extra == "test"
60
+ Requires-Dist: requests-mock==1.10.0; extra == "test"
61
+ Requires-Dist: safetensors>=0.3.1; extra == "test"
62
+ Requires-Dist: sentencepiece!=0.1.92,>=0.1.91; extra == "test"
63
+ Requires-Dist: scipy; extra == "test"
64
+ Requires-Dist: torchvision; extra == "test"
65
+ Requires-Dist: transformers>=4.25.1; extra == "test"
29
66
  Provides-Extra: torch
30
- Provides-Extra: training
31
- License-File: LICENSE
67
+ Requires-Dist: torch>=1.4; extra == "torch"
68
+ Requires-Dist: accelerate>=0.11.0; extra == "torch"
69
+ Provides-Extra: flax
70
+ Requires-Dist: jax>=0.4.1; extra == "flax"
71
+ Requires-Dist: jaxlib>=0.4.1; extra == "flax"
72
+ Requires-Dist: flax>=0.4.1; extra == "flax"
73
+ Provides-Extra: dev
74
+ Requires-Dist: urllib3<=2.0.0; extra == "dev"
75
+ Requires-Dist: isort>=5.5.4; extra == "dev"
76
+ Requires-Dist: ruff==0.1.5; extra == "dev"
77
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "dev"
78
+ Requires-Dist: compel==0.1.8; extra == "dev"
79
+ Requires-Dist: GitPython<3.1.19; extra == "dev"
80
+ Requires-Dist: datasets; extra == "dev"
81
+ Requires-Dist: Jinja2; extra == "dev"
82
+ Requires-Dist: invisible-watermark>=0.2.0; extra == "dev"
83
+ Requires-Dist: k-diffusion>=0.0.12; extra == "dev"
84
+ Requires-Dist: librosa; extra == "dev"
85
+ Requires-Dist: omegaconf; extra == "dev"
86
+ Requires-Dist: parameterized; extra == "dev"
87
+ Requires-Dist: pytest; extra == "dev"
88
+ Requires-Dist: pytest-timeout; extra == "dev"
89
+ Requires-Dist: pytest-xdist; extra == "dev"
90
+ Requires-Dist: requests-mock==1.10.0; extra == "dev"
91
+ Requires-Dist: safetensors>=0.3.1; extra == "dev"
92
+ Requires-Dist: sentencepiece!=0.1.92,>=0.1.91; extra == "dev"
93
+ Requires-Dist: scipy; extra == "dev"
94
+ Requires-Dist: torchvision; extra == "dev"
95
+ Requires-Dist: transformers>=4.25.1; extra == "dev"
96
+ Requires-Dist: accelerate>=0.11.0; extra == "dev"
97
+ Requires-Dist: datasets; extra == "dev"
98
+ Requires-Dist: protobuf<4,>=3.20.3; extra == "dev"
99
+ Requires-Dist: tensorboard; extra == "dev"
100
+ Requires-Dist: Jinja2; extra == "dev"
101
+ Requires-Dist: peft>=0.6.0; extra == "dev"
102
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "dev"
103
+ Requires-Dist: torch>=1.4; extra == "dev"
104
+ Requires-Dist: accelerate>=0.11.0; extra == "dev"
105
+ Requires-Dist: jax>=0.4.1; extra == "dev"
106
+ Requires-Dist: jaxlib>=0.4.1; extra == "dev"
107
+ Requires-Dist: flax>=0.4.1; extra == "dev"
32
108
 
33
109
  <!---
34
110
  Copyright 2022 - The HuggingFace Team. All rights reserved.
@@ -109,7 +185,7 @@ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggi
109
185
 
110
186
  ## Quickstart
111
187
 
112
- Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 15000+ checkpoints):
188
+ Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 16000+ checkpoints):
113
189
 
114
190
  ```python
115
191
  from diffusers import DiffusionPipeline
@@ -251,7 +327,7 @@ Also, say 👋 in our public Discord channel <a href="https://discord.gg/G7tWnz9
251
327
  - https://github.com/deep-floyd/IF
252
328
  - https://github.com/bentoml/BentoML
253
329
  - https://github.com/bmaltais/kohya_ss
254
- - +6000 other amazing GitHub repositories 💪
330
+ - +7000 other amazing GitHub repositories 💪
255
331
 
256
332
  Thank you for using us ❤️.
257
333
 
@@ -278,5 +354,3 @@ We also want to thank @heejkoo for the very helpful overview of papers, code and
278
354
  howpublished = {\url{https://github.com/huggingface/diffusers}}
279
355
  }
280
356
  ```
281
-
282
-
@@ -77,7 +77,7 @@ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggi
77
77
 
78
78
  ## Quickstart
79
79
 
80
- Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 15000+ checkpoints):
80
+ Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 16000+ checkpoints):
81
81
 
82
82
  ```python
83
83
  from diffusers import DiffusionPipeline
@@ -219,7 +219,7 @@ Also, say 👋 in our public Discord channel <a href="https://discord.gg/G7tWnz9
219
219
  - https://github.com/deep-floyd/IF
220
220
  - https://github.com/bentoml/BentoML
221
221
  - https://github.com/bmaltais/kohya_ss
222
- - +6000 other amazing GitHub repositories 💪
222
+ - +7000 other amazing GitHub repositories 💪
223
223
 
224
224
  Thank you for using us ❤️.
225
225
 
@@ -97,7 +97,7 @@ _deps = [
97
97
  "filelock",
98
98
  "flax>=0.4.1",
99
99
  "hf-doc-builder>=0.3.0",
100
- "huggingface-hub>=0.19.4",
100
+ "huggingface-hub>=0.20.2",
101
101
  "requests-mock==1.10.0",
102
102
  "importlib_metadata",
103
103
  "invisible-watermark>=0.2.0",
@@ -118,9 +118,10 @@ _deps = [
118
118
  "pytest-timeout",
119
119
  "pytest-xdist",
120
120
  "python>=3.8.0",
121
- "ruff>=0.1.5,<=0.2",
121
+ "ruff==0.1.5",
122
122
  "safetensors>=0.3.1",
123
123
  "sentencepiece>=0.1.91,!=0.1.92",
124
+ "GitPython<3.1.19",
124
125
  "scipy",
125
126
  "onnx",
126
127
  "regex!=2019.12.17",
@@ -203,9 +204,10 @@ class DepsTableUpdateCommand(Command):
203
204
  extras = {}
204
205
  extras["quality"] = deps_list("urllib3", "isort", "ruff", "hf-doc-builder")
205
206
  extras["docs"] = deps_list("hf-doc-builder")
206
- extras["training"] = deps_list("accelerate", "datasets", "protobuf", "tensorboard", "Jinja2")
207
+ extras["training"] = deps_list("accelerate", "datasets", "protobuf", "tensorboard", "Jinja2", "peft")
207
208
  extras["test"] = deps_list(
208
209
  "compel",
210
+ "GitPython",
209
211
  "datasets",
210
212
  "Jinja2",
211
213
  "invisible-watermark",
@@ -249,13 +251,13 @@ version_range_max = max(sys.version_info[1], 10) + 1
249
251
 
250
252
  setup(
251
253
  name="diffusers",
252
- version="0.24.0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
254
+ version="0.25.1", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
253
255
  description="State-of-the-art diffusion in PyTorch and JAX.",
254
256
  long_description=open("README.md", "r", encoding="utf-8").read(),
255
257
  long_description_content_type="text/markdown",
256
258
  keywords="deep learning diffusion jax pytorch stable diffusion audioldm",
257
- license="Apache",
258
- author="The HuggingFace team",
259
+ license="Apache 2.0 License",
260
+ author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)",
259
261
  author_email="patrick@huggingface.co",
260
262
  url="https://github.com/huggingface/diffusers",
261
263
  package_dir={"": "src"},
@@ -279,24 +281,3 @@ setup(
279
281
  + [f"Programming Language :: Python :: 3.{i}" for i in range(8, version_range_max)],
280
282
  cmdclass={"deps_table_update": DepsTableUpdateCommand},
281
283
  )
282
-
283
-
284
- # Release checklist
285
- # 1. Change the version in __init__.py and setup.py.
286
- # 2. Commit these changes with the message: "Release: Release"
287
- # 3. Add a tag in git to mark the release: "git tag RELEASE -m 'Adds tag RELEASE for PyPI'"
288
- # Push the tag to git: git push --tags origin main
289
- # 4. Run the following commands in the top-level directory:
290
- # python setup.py bdist_wheel
291
- # python setup.py sdist
292
- # 5. Upload the package to the PyPI test server first:
293
- # twine upload dist/* -r pypitest
294
- # twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
295
- # 6. Check that you can install it in a virtualenv by running:
296
- # pip install -i https://testpypi.python.org/pypi diffusers
297
- # diffusers env
298
- # diffusers test
299
- # 7. Upload the final version to the actual PyPI:
300
- # twine upload dist/* -r pypi
301
- # 8. Add release notes to the tag in GitHub once everything is looking hunky-dory.
302
- # 9. Update the version in __init__.py, setup.py to the new version "-dev" and push to main.
@@ -1,4 +1,4 @@
1
- __version__ = "0.24.0"
1
+ __version__ = "0.25.1"
2
2
 
3
3
  from typing import TYPE_CHECKING
4
4
 
@@ -94,6 +94,7 @@ else:
94
94
  "UNet3DConditionModel",
95
95
  "UNetMotionModel",
96
96
  "UNetSpatioTemporalConditionModel",
97
+ "UVit2DModel",
97
98
  "VQModel",
98
99
  ]
99
100
  )
@@ -130,6 +131,7 @@ else:
130
131
  )
131
132
  _import_structure["schedulers"].extend(
132
133
  [
134
+ "AmusedScheduler",
133
135
  "CMStochasticIterativeScheduler",
134
136
  "DDIMInverseScheduler",
135
137
  "DDIMParallelScheduler",
@@ -201,6 +203,9 @@ else:
201
203
  [
202
204
  "AltDiffusionImg2ImgPipeline",
203
205
  "AltDiffusionPipeline",
206
+ "AmusedImg2ImgPipeline",
207
+ "AmusedInpaintPipeline",
208
+ "AmusedPipeline",
204
209
  "AnimateDiffPipeline",
205
210
  "AudioLDM2Pipeline",
206
211
  "AudioLDM2ProjectionModel",
@@ -468,6 +473,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
468
473
  UNet3DConditionModel,
469
474
  UNetMotionModel,
470
475
  UNetSpatioTemporalConditionModel,
476
+ UVit2DModel,
471
477
  VQModel,
472
478
  )
473
479
  from .optimization import (
@@ -502,6 +508,7 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
502
508
  ScoreSdeVePipeline,
503
509
  )
504
510
  from .schedulers import (
511
+ AmusedScheduler,
505
512
  CMStochasticIterativeScheduler,
506
513
  DDIMInverseScheduler,
507
514
  DDIMParallelScheduler,
@@ -556,6 +563,9 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
556
563
  from .pipelines import (
557
564
  AltDiffusionImg2ImgPipeline,
558
565
  AltDiffusionPipeline,
566
+ AmusedImg2ImgPipeline,
567
+ AmusedInpaintPipeline,
568
+ AmusedPipeline,
559
569
  AnimateDiffPipeline,
560
570
  AudioLDM2Pipeline,
561
571
  AudioLDM2ProjectionModel,
@@ -19,6 +19,7 @@ Usage example:
19
19
 
20
20
  import glob
21
21
  import json
22
+ import warnings
22
23
  from argparse import ArgumentParser, Namespace
23
24
  from importlib import import_module
24
25
 
@@ -32,12 +33,12 @@ from . import BaseDiffusersCLICommand
32
33
 
33
34
 
34
35
  def conversion_command_factory(args: Namespace):
35
- return FP16SafetensorsCommand(
36
- args.ckpt_id,
37
- args.fp16,
38
- args.use_safetensors,
39
- args.use_auth_token,
40
- )
36
+ if args.use_auth_token:
37
+ warnings.warn(
38
+ "The `--use_auth_token` flag is deprecated and will be removed in a future version. Authentication is now"
39
+ " handled automatically if user is logged in."
40
+ )
41
+ return FP16SafetensorsCommand(args.ckpt_id, args.fp16, args.use_safetensors)
41
42
 
42
43
 
43
44
  class FP16SafetensorsCommand(BaseDiffusersCLICommand):
@@ -62,7 +63,7 @@ class FP16SafetensorsCommand(BaseDiffusersCLICommand):
62
63
  )
63
64
  conversion_parser.set_defaults(func=conversion_command_factory)
64
65
 
65
- def __init__(self, ckpt_id: str, fp16: bool, use_safetensors: bool, use_auth_token: bool):
66
+ def __init__(self, ckpt_id: str, fp16: bool, use_safetensors: bool):
66
67
  self.logger = logging.get_logger("diffusers-cli/fp16_safetensors")
67
68
  self.ckpt_id = ckpt_id
68
69
  self.local_ckpt_dir = f"/tmp/{ckpt_id}"
@@ -75,8 +76,6 @@ class FP16SafetensorsCommand(BaseDiffusersCLICommand):
75
76
  "When `use_safetensors` and `fp16` both are False, then this command is of no use."
76
77
  )
77
78
 
78
- self.use_auth_token = use_auth_token
79
-
80
79
  def run(self):
81
80
  if version.parse(huggingface_hub.__version__) < version.parse("0.9.0"):
82
81
  raise ImportError(
@@ -87,7 +86,7 @@ class FP16SafetensorsCommand(BaseDiffusersCLICommand):
87
86
  from huggingface_hub import create_commit
88
87
  from huggingface_hub._commit_api import CommitOperationAdd
89
88
 
90
- model_index = hf_hub_download(repo_id=self.ckpt_id, filename="model_index.json", token=self.use_auth_token)
89
+ model_index = hf_hub_download(repo_id=self.ckpt_id, filename="model_index.json")
91
90
  with open(model_index, "r") as f:
92
91
  pipeline_class_name = json.load(f)["_class_name"]
93
92
  pipeline_class = getattr(import_module("diffusers"), pipeline_class_name)
@@ -96,7 +95,7 @@ class FP16SafetensorsCommand(BaseDiffusersCLICommand):
96
95
  # Load the appropriate pipeline. We could have use `DiffusionPipeline`
97
96
  # here, but just to avoid any rough edge cases.
98
97
  pipeline = pipeline_class.from_pretrained(
99
- self.ckpt_id, torch_dtype=torch.float16 if self.fp16 else torch.float32, use_auth_token=self.use_auth_token
98
+ self.ckpt_id, torch_dtype=torch.float16 if self.fp16 else torch.float32
100
99
  )
101
100
  pipeline.save_pretrained(
102
101
  self.local_ckpt_dir,
@@ -27,12 +27,16 @@ from typing import Any, Dict, Tuple, Union
27
27
 
28
28
  import numpy as np
29
29
  from huggingface_hub import create_repo, hf_hub_download
30
- from huggingface_hub.utils import EntryNotFoundError, RepositoryNotFoundError, RevisionNotFoundError
30
+ from huggingface_hub.utils import (
31
+ EntryNotFoundError,
32
+ RepositoryNotFoundError,
33
+ RevisionNotFoundError,
34
+ validate_hf_hub_args,
35
+ )
31
36
  from requests import HTTPError
32
37
 
33
38
  from . import __version__
34
39
  from .utils import (
35
- DIFFUSERS_CACHE,
36
40
  HUGGINGFACE_CO_RESOLVE_ENDPOINT,
37
41
  DummyObject,
38
42
  deprecate,
@@ -275,6 +279,7 @@ class ConfigMixin:
275
279
  return cls.load_config(*args, **kwargs)
276
280
 
277
281
  @classmethod
282
+ @validate_hf_hub_args
278
283
  def load_config(
279
284
  cls,
280
285
  pretrained_model_name_or_path: Union[str, os.PathLike],
@@ -311,7 +316,7 @@ class ConfigMixin:
311
316
  local_files_only (`bool`, *optional*, defaults to `False`):
312
317
  Whether to only load local model weights and configuration files or not. If set to `True`, the model
313
318
  won't be downloaded from the Hub.
314
- use_auth_token (`str` or *bool*, *optional*):
319
+ token (`str` or *bool*, *optional*):
315
320
  The token to use as HTTP bearer authorization for remote files. If `True`, the token generated from
316
321
  `diffusers-cli login` (stored in `~/.huggingface`) is used.
317
322
  revision (`str`, *optional*, defaults to `"main"`):
@@ -329,11 +334,11 @@ class ConfigMixin:
329
334
  A dictionary of all the parameters stored in a JSON configuration file.
330
335
 
331
336
  """
332
- cache_dir = kwargs.pop("cache_dir", DIFFUSERS_CACHE)
337
+ cache_dir = kwargs.pop("cache_dir", None)
333
338
  force_download = kwargs.pop("force_download", False)
334
339
  resume_download = kwargs.pop("resume_download", False)
335
340
  proxies = kwargs.pop("proxies", None)
336
- use_auth_token = kwargs.pop("use_auth_token", None)
341
+ token = kwargs.pop("token", None)
337
342
  local_files_only = kwargs.pop("local_files_only", False)
338
343
  revision = kwargs.pop("revision", None)
339
344
  _ = kwargs.pop("mirror", None)
@@ -376,7 +381,7 @@ class ConfigMixin:
376
381
  proxies=proxies,
377
382
  resume_download=resume_download,
378
383
  local_files_only=local_files_only,
379
- use_auth_token=use_auth_token,
384
+ token=token,
380
385
  user_agent=user_agent,
381
386
  subfolder=subfolder,
382
387
  revision=revision,
@@ -385,8 +390,7 @@ class ConfigMixin:
385
390
  raise EnvironmentError(
386
391
  f"{pretrained_model_name_or_path} is not a local folder and is not a valid model identifier"
387
392
  " listed on 'https://huggingface.co/models'\nIf this is a private repository, make sure to pass a"
388
- " token having permission to this repo with `use_auth_token` or log in with `huggingface-cli"
389
- " login`."
393
+ " token having permission to this repo with `token` or log in with `huggingface-cli login`."
390
394
  )
391
395
  except RevisionNotFoundError:
392
396
  raise EnvironmentError(
@@ -9,7 +9,7 @@ deps = {
9
9
  "filelock": "filelock",
10
10
  "flax": "flax>=0.4.1",
11
11
  "hf-doc-builder": "hf-doc-builder>=0.3.0",
12
- "huggingface-hub": "huggingface-hub>=0.19.4",
12
+ "huggingface-hub": "huggingface-hub>=0.20.2",
13
13
  "requests-mock": "requests-mock==1.10.0",
14
14
  "importlib_metadata": "importlib_metadata",
15
15
  "invisible-watermark": "invisible-watermark>=0.2.0",
@@ -30,9 +30,10 @@ deps = {
30
30
  "pytest-timeout": "pytest-timeout",
31
31
  "pytest-xdist": "pytest-xdist",
32
32
  "python": "python>=3.8.0",
33
- "ruff": "ruff>=0.1.5,<=0.2",
33
+ "ruff": "ruff==0.1.5",
34
34
  "safetensors": "safetensors>=0.3.1",
35
35
  "sentencepiece": "sentencepiece>=0.1.91,!=0.1.92",
36
+ "GitPython": "GitPython<3.1.19",
36
37
  "scipy": "scipy",
37
38
  "onnx": "onnx",
38
39
  "regex": "regex!=2019.12.17",
@@ -113,7 +113,7 @@ class ValueGuidedRLPipeline(DiffusionPipeline):
113
113
  prev_x = self.unet(x.permute(0, 2, 1), timesteps).sample.permute(0, 2, 1)
114
114
 
115
115
  # TODO: verify deprecation of this kwarg
116
- x = self.scheduler.step(prev_x, i, x, predict_epsilon=False)["prev_sample"]
116
+ x = self.scheduler.step(prev_x, i, x)["prev_sample"]
117
117
 
118
118
  # apply conditions to the trajectory (set the initial state)
119
119
  x = self.reset_x0(x, conditions, self.action_dim)