diffusers 0.27.1__tar.gz → 0.32.2__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (839) hide show
  1. diffusers-0.32.2/PKG-INFO +344 -0
  2. diffusers-0.32.2/README.md +239 -0
  3. diffusers-0.32.2/pyproject.toml +29 -0
  4. diffusers-0.32.2/setup.py +286 -0
  5. diffusers-0.32.2/src/diffusers/__init__.py +1014 -0
  6. diffusers-0.32.2/src/diffusers/callbacks.py +209 -0
  7. diffusers-0.32.2/src/diffusers/commands/env.py +180 -0
  8. diffusers-0.32.2/src/diffusers/configuration_utils.py +732 -0
  9. diffusers-0.32.2/src/diffusers/dependency_versions_table.py +46 -0
  10. diffusers-0.32.2/src/diffusers/image_processor.py +1314 -0
  11. diffusers-0.32.2/src/diffusers/loaders/__init__.py +121 -0
  12. diffusers-0.32.2/src/diffusers/loaders/ip_adapter.py +871 -0
  13. diffusers-0.32.2/src/diffusers/loaders/lora_base.py +900 -0
  14. diffusers-0.32.2/src/diffusers/loaders/lora_conversion_utils.py +1150 -0
  15. diffusers-0.32.2/src/diffusers/loaders/lora_pipeline.py +3812 -0
  16. diffusers-0.32.2/src/diffusers/loaders/peft.py +750 -0
  17. diffusers-0.32.2/src/diffusers/loaders/single_file.py +550 -0
  18. diffusers-0.32.2/src/diffusers/loaders/single_file_model.py +385 -0
  19. diffusers-0.32.2/src/diffusers/loaders/single_file_utils.py +2687 -0
  20. diffusers-0.32.2/src/diffusers/loaders/textual_inversion.py +580 -0
  21. diffusers-0.32.2/src/diffusers/loaders/transformer_flux.py +181 -0
  22. diffusers-0.32.2/src/diffusers/loaders/transformer_sd3.py +89 -0
  23. diffusers-0.32.2/src/diffusers/loaders/unet.py +927 -0
  24. diffusers-0.32.2/src/diffusers/loaders/unet_loader_utils.py +163 -0
  25. diffusers-0.32.2/src/diffusers/models/__init__.py +172 -0
  26. diffusers-0.32.2/src/diffusers/models/activations.py +178 -0
  27. diffusers-0.32.2/src/diffusers/models/adapter.py +584 -0
  28. diffusers-0.32.2/src/diffusers/models/attention.py +1252 -0
  29. diffusers-0.32.2/src/diffusers/models/attention_flax.py +494 -0
  30. diffusers-0.32.2/src/diffusers/models/attention_processor.py +6097 -0
  31. diffusers-0.32.2/src/diffusers/models/autoencoders/__init__.py +13 -0
  32. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_asym_kl.py +184 -0
  33. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_dc.py +620 -0
  34. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl.py +571 -0
  35. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_allegro.py +1149 -0
  36. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_cogvideox.py +1482 -0
  37. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py +1176 -0
  38. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_ltx.py +1338 -0
  39. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_mochi.py +1166 -0
  40. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py +394 -0
  41. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_oobleck.py +464 -0
  42. diffusers-0.32.2/src/diffusers/models/autoencoders/autoencoder_tiny.py +350 -0
  43. diffusers-0.32.2/src/diffusers/models/autoencoders/consistency_decoder_vae.py +460 -0
  44. diffusers-0.32.2/src/diffusers/models/autoencoders/vae.py +995 -0
  45. diffusers-0.32.2/src/diffusers/models/autoencoders/vq_model.py +182 -0
  46. diffusers-0.32.2/src/diffusers/models/controlnet.py +115 -0
  47. diffusers-0.32.2/src/diffusers/models/controlnet_flux.py +70 -0
  48. diffusers-0.32.2/src/diffusers/models/controlnet_sd3.py +68 -0
  49. diffusers-0.32.2/src/diffusers/models/controlnet_sparsectrl.py +116 -0
  50. diffusers-0.32.2/src/diffusers/models/controlnets/__init__.py +23 -0
  51. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet.py +872 -0
  52. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_flax.py +395 -0
  53. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_flux.py +536 -0
  54. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_hunyuan.py +401 -0
  55. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_sd3.py +489 -0
  56. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_sparsectrl.py +788 -0
  57. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_union.py +832 -0
  58. diffusers-0.32.2/src/diffusers/models/controlnets/controlnet_xs.py +1946 -0
  59. diffusers-0.32.2/src/diffusers/models/controlnets/multicontrolnet.py +183 -0
  60. diffusers-0.32.2/src/diffusers/models/downsampling.py +401 -0
  61. diffusers-0.32.2/src/diffusers/models/embeddings.py +2612 -0
  62. diffusers-0.32.2/src/diffusers/models/embeddings_flax.py +111 -0
  63. diffusers-0.32.2/src/diffusers/models/model_loading_utils.py +480 -0
  64. diffusers-0.32.2/src/diffusers/models/modeling_flax_pytorch_utils.py +135 -0
  65. diffusers-0.32.2/src/diffusers/models/modeling_flax_utils.py +561 -0
  66. diffusers-0.32.2/src/diffusers/models/modeling_outputs.py +31 -0
  67. diffusers-0.32.2/src/diffusers/models/modeling_pytorch_flax_utils.py +161 -0
  68. diffusers-0.32.2/src/diffusers/models/modeling_utils.py +1486 -0
  69. diffusers-0.32.2/src/diffusers/models/normalization.py +595 -0
  70. diffusers-0.32.2/src/diffusers/models/resnet.py +797 -0
  71. diffusers-0.32.2/src/diffusers/models/transformers/__init__.py +25 -0
  72. diffusers-0.32.2/src/diffusers/models/transformers/auraflow_transformer_2d.py +544 -0
  73. diffusers-0.32.2/src/diffusers/models/transformers/cogvideox_transformer_3d.py +542 -0
  74. diffusers-0.32.2/src/diffusers/models/transformers/dit_transformer_2d.py +240 -0
  75. diffusers-0.32.2/src/diffusers/models/transformers/dual_transformer_2d.py +156 -0
  76. diffusers-0.32.2/src/diffusers/models/transformers/hunyuan_transformer_2d.py +578 -0
  77. diffusers-0.32.2/src/diffusers/models/transformers/latte_transformer_3d.py +327 -0
  78. diffusers-0.32.2/src/diffusers/models/transformers/lumina_nextdit2d.py +340 -0
  79. diffusers-0.32.2/src/diffusers/models/transformers/pixart_transformer_2d.py +445 -0
  80. diffusers-0.32.2/src/diffusers/models/transformers/prior_transformer.py +380 -0
  81. diffusers-0.32.2/src/diffusers/models/transformers/sana_transformer.py +488 -0
  82. diffusers-0.32.2/src/diffusers/models/transformers/stable_audio_transformer.py +458 -0
  83. diffusers-0.32.2/src/diffusers/models/transformers/t5_film_transformer.py +436 -0
  84. diffusers-0.32.2/src/diffusers/models/transformers/transformer_2d.py +566 -0
  85. diffusers-0.32.2/src/diffusers/models/transformers/transformer_allegro.py +422 -0
  86. diffusers-0.32.2/src/diffusers/models/transformers/transformer_cogview3plus.py +386 -0
  87. diffusers-0.32.2/src/diffusers/models/transformers/transformer_flux.py +593 -0
  88. diffusers-0.32.2/src/diffusers/models/transformers/transformer_hunyuan_video.py +791 -0
  89. diffusers-0.32.2/src/diffusers/models/transformers/transformer_ltx.py +469 -0
  90. diffusers-0.32.2/src/diffusers/models/transformers/transformer_mochi.py +499 -0
  91. diffusers-0.32.2/src/diffusers/models/transformers/transformer_sd3.py +461 -0
  92. diffusers-0.32.2/src/diffusers/models/transformers/transformer_temporal.py +381 -0
  93. diffusers-0.32.2/src/diffusers/models/unets/unet_1d.py +255 -0
  94. diffusers-0.32.2/src/diffusers/models/unets/unet_1d_blocks.py +702 -0
  95. diffusers-0.32.2/src/diffusers/models/unets/unet_2d.py +353 -0
  96. diffusers-0.32.2/src/diffusers/models/unets/unet_2d_blocks.py +3807 -0
  97. diffusers-0.32.2/src/diffusers/models/unets/unet_2d_condition.py +1312 -0
  98. diffusers-0.32.2/src/diffusers/models/unets/unet_2d_condition_flax.py +454 -0
  99. diffusers-0.32.2/src/diffusers/models/unets/unet_3d_blocks.py +1540 -0
  100. diffusers-0.32.2/src/diffusers/models/unets/unet_3d_condition.py +748 -0
  101. diffusers-0.32.2/src/diffusers/models/unets/unet_i2vgen_xl.py +728 -0
  102. diffusers-0.32.2/src/diffusers/models/unets/unet_kandinsky3.py +535 -0
  103. diffusers-0.32.2/src/diffusers/models/unets/unet_motion_model.py +2272 -0
  104. diffusers-0.32.2/src/diffusers/models/unets/unet_spatio_temporal_condition.py +513 -0
  105. diffusers-0.32.2/src/diffusers/models/unets/unet_stable_cascade.py +611 -0
  106. diffusers-0.32.2/src/diffusers/models/unets/uvit_2d.py +470 -0
  107. diffusers-0.32.2/src/diffusers/models/upsampling.py +517 -0
  108. diffusers-0.32.2/src/diffusers/models/vq_model.py +29 -0
  109. diffusers-0.32.2/src/diffusers/optimization.py +361 -0
  110. diffusers-0.32.2/src/diffusers/pipelines/__init__.py +780 -0
  111. diffusers-0.32.2/src/diffusers/pipelines/allegro/__init__.py +48 -0
  112. diffusers-0.32.2/src/diffusers/pipelines/allegro/pipeline_allegro.py +938 -0
  113. diffusers-0.32.2/src/diffusers/pipelines/allegro/pipeline_output.py +23 -0
  114. diffusers-0.32.2/src/diffusers/pipelines/amused/pipeline_amused.py +328 -0
  115. diffusers-0.32.2/src/diffusers/pipelines/amused/pipeline_amused_img2img.py +349 -0
  116. diffusers-0.32.2/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py +380 -0
  117. diffusers-0.32.2/src/diffusers/pipelines/animatediff/__init__.py +57 -0
  118. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff.py +860 -0
  119. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py +1106 -0
  120. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py +1288 -0
  121. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py +1010 -0
  122. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py +1053 -0
  123. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py +1341 -0
  124. diffusers-0.32.2/src/diffusers/pipelines/animatediff/pipeline_output.py +24 -0
  125. diffusers-0.32.2/src/diffusers/pipelines/audioldm/pipeline_audioldm.py +546 -0
  126. diffusers-0.32.2/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py +1530 -0
  127. diffusers-0.32.2/src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py +1065 -0
  128. diffusers-0.32.2/src/diffusers/pipelines/aura_flow/__init__.py +48 -0
  129. diffusers-0.32.2/src/diffusers/pipelines/aura_flow/pipeline_aura_flow.py +584 -0
  130. diffusers-0.32.2/src/diffusers/pipelines/auto_pipeline.py +1155 -0
  131. diffusers-0.32.2/src/diffusers/pipelines/blip_diffusion/blip_image_processing.py +318 -0
  132. diffusers-0.32.2/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py +642 -0
  133. diffusers-0.32.2/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py +223 -0
  134. diffusers-0.32.2/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py +348 -0
  135. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/__init__.py +54 -0
  136. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/pipeline_cogvideox.py +772 -0
  137. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py +825 -0
  138. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py +885 -0
  139. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py +851 -0
  140. diffusers-0.32.2/src/diffusers/pipelines/cogvideo/pipeline_output.py +20 -0
  141. diffusers-0.32.2/src/diffusers/pipelines/cogview3/__init__.py +47 -0
  142. diffusers-0.32.2/src/diffusers/pipelines/cogview3/pipeline_cogview3plus.py +674 -0
  143. diffusers-0.32.2/src/diffusers/pipelines/cogview3/pipeline_output.py +21 -0
  144. diffusers-0.32.2/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py +275 -0
  145. diffusers-0.32.2/src/diffusers/pipelines/controlnet/__init__.py +86 -0
  146. diffusers-0.32.2/src/diffusers/pipelines/controlnet/multicontrolnet.py +12 -0
  147. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +1365 -0
  148. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +413 -0
  149. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +1326 -0
  150. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +1511 -0
  151. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +1864 -0
  152. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +1595 -0
  153. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +1662 -0
  154. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py +1790 -0
  155. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py +1501 -0
  156. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py +1627 -0
  157. diffusers-0.32.2/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py +532 -0
  158. diffusers-0.32.2/src/diffusers/pipelines/controlnet_hunyuandit/__init__.py +48 -0
  159. diffusers-0.32.2/src/diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py +1060 -0
  160. diffusers-0.32.2/src/diffusers/pipelines/controlnet_sd3/__init__.py +57 -0
  161. diffusers-0.32.2/src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py +1133 -0
  162. diffusers-0.32.2/src/diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py +1153 -0
  163. diffusers-0.32.2/src/diffusers/pipelines/controlnet_xs/__init__.py +68 -0
  164. diffusers-0.32.2/src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs.py +916 -0
  165. diffusers-0.32.2/src/diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs_sd_xl.py +1111 -0
  166. diffusers-0.32.2/src/diffusers/pipelines/ddpm/pipeline_ddpm.py +127 -0
  167. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py +774 -0
  168. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +895 -0
  169. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +1011 -0
  170. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +1014 -0
  171. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +1121 -0
  172. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +870 -0
  173. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/pipeline_output.py +29 -0
  174. diffusers-0.32.2/src/diffusers/pipelines/deepfloyd_if/watermark.py +46 -0
  175. diffusers-0.32.2/src/diffusers/pipelines/deprecated/alt_diffusion/modeling_roberta_series.py +124 -0
  176. diffusers-0.32.2/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py +986 -0
  177. diffusers-0.32.2/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py +1041 -0
  178. diffusers-0.32.2/src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py +230 -0
  179. diffusers-0.32.2/src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py +269 -0
  180. diffusers-0.32.2/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py +949 -0
  181. diffusers-0.32.2/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py +784 -0
  182. diffusers-0.32.2/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py +830 -0
  183. diffusers-0.32.2/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py +796 -0
  184. diffusers-0.32.2/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py +1310 -0
  185. diffusers-0.32.2/src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py +2541 -0
  186. diffusers-0.32.2/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py +421 -0
  187. diffusers-0.32.2/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py +561 -0
  188. diffusers-0.32.2/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py +402 -0
  189. diffusers-0.32.2/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py +480 -0
  190. diffusers-0.32.2/src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py +325 -0
  191. diffusers-0.32.2/src/diffusers/pipelines/dit/pipeline_dit.py +236 -0
  192. diffusers-0.32.2/src/diffusers/pipelines/flux/__init__.py +69 -0
  193. diffusers-0.32.2/src/diffusers/pipelines/flux/modeling_flux.py +47 -0
  194. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux.py +957 -0
  195. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_control.py +889 -0
  196. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_control_img2img.py +945 -0
  197. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_control_inpaint.py +1141 -0
  198. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_controlnet.py +1006 -0
  199. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py +998 -0
  200. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py +1204 -0
  201. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_fill.py +969 -0
  202. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_img2img.py +856 -0
  203. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_inpaint.py +1022 -0
  204. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_flux_prior_redux.py +492 -0
  205. diffusers-0.32.2/src/diffusers/pipelines/flux/pipeline_output.py +37 -0
  206. diffusers-0.32.2/src/diffusers/pipelines/free_init_utils.py +187 -0
  207. diffusers-0.32.2/src/diffusers/pipelines/free_noise_utils.py +596 -0
  208. diffusers-0.32.2/src/diffusers/pipelines/hunyuan_video/__init__.py +48 -0
  209. diffusers-0.32.2/src/diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py +687 -0
  210. diffusers-0.32.2/src/diffusers/pipelines/hunyuan_video/pipeline_output.py +20 -0
  211. diffusers-0.32.2/src/diffusers/pipelines/hunyuandit/__init__.py +48 -0
  212. diffusers-0.32.2/src/diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py +916 -0
  213. diffusers-0.32.2/src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py +783 -0
  214. diffusers-0.32.2/src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py +407 -0
  215. diffusers-0.32.2/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py +817 -0
  216. diffusers-0.32.2/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py +500 -0
  217. diffusers-0.32.2/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py +635 -0
  218. diffusers-0.32.2/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py +547 -0
  219. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +320 -0
  220. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py +854 -0
  221. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +320 -0
  222. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py +381 -0
  223. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +399 -0
  224. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +556 -0
  225. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +549 -0
  226. diffusers-0.32.2/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py +563 -0
  227. diffusers-0.32.2/src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py +98 -0
  228. diffusers-0.32.2/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +576 -0
  229. diffusers-0.32.2/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +643 -0
  230. diffusers-0.32.2/src/diffusers/pipelines/kolors/__init__.py +54 -0
  231. diffusers-0.32.2/src/diffusers/pipelines/kolors/pipeline_kolors.py +1070 -0
  232. diffusers-0.32.2/src/diffusers/pipelines/kolors/pipeline_kolors_img2img.py +1250 -0
  233. diffusers-0.32.2/src/diffusers/pipelines/kolors/pipeline_output.py +21 -0
  234. diffusers-0.32.2/src/diffusers/pipelines/kolors/text_encoder.py +889 -0
  235. diffusers-0.32.2/src/diffusers/pipelines/kolors/tokenizer.py +338 -0
  236. diffusers-0.32.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +976 -0
  237. diffusers-0.32.2/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +905 -0
  238. diffusers-0.32.2/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +746 -0
  239. diffusers-0.32.2/src/diffusers/pipelines/latte/__init__.py +48 -0
  240. diffusers-0.32.2/src/diffusers/pipelines/latte/pipeline_latte.py +881 -0
  241. diffusers-0.32.2/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py +1511 -0
  242. diffusers-0.32.2/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py +1806 -0
  243. diffusers-0.32.2/src/diffusers/pipelines/ledits_pp/pipeline_output.py +43 -0
  244. diffusers-0.32.2/src/diffusers/pipelines/ltx/__init__.py +50 -0
  245. diffusers-0.32.2/src/diffusers/pipelines/ltx/pipeline_ltx.py +789 -0
  246. diffusers-0.32.2/src/diffusers/pipelines/ltx/pipeline_ltx_image2video.py +885 -0
  247. diffusers-0.32.2/src/diffusers/pipelines/ltx/pipeline_output.py +20 -0
  248. diffusers-0.32.2/src/diffusers/pipelines/lumina/__init__.py +48 -0
  249. diffusers-0.32.2/src/diffusers/pipelines/lumina/pipeline_lumina.py +890 -0
  250. diffusers-0.32.2/src/diffusers/pipelines/marigold/__init__.py +50 -0
  251. diffusers-0.32.2/src/diffusers/pipelines/marigold/marigold_image_processing.py +576 -0
  252. diffusers-0.32.2/src/diffusers/pipelines/marigold/pipeline_marigold_depth.py +813 -0
  253. diffusers-0.32.2/src/diffusers/pipelines/marigold/pipeline_marigold_normals.py +690 -0
  254. diffusers-0.32.2/src/diffusers/pipelines/mochi/__init__.py +48 -0
  255. diffusers-0.32.2/src/diffusers/pipelines/mochi/pipeline_mochi.py +748 -0
  256. diffusers-0.32.2/src/diffusers/pipelines/mochi/pipeline_output.py +20 -0
  257. diffusers-0.32.2/src/diffusers/pipelines/musicldm/pipeline_musicldm.py +635 -0
  258. diffusers-0.32.2/src/diffusers/pipelines/pag/__init__.py +80 -0
  259. diffusers-0.32.2/src/diffusers/pipelines/pag/pag_utils.py +243 -0
  260. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py +1328 -0
  261. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py +1543 -0
  262. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py +1610 -0
  263. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py +1683 -0
  264. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_hunyuandit.py +969 -0
  265. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_kolors.py +1136 -0
  266. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py +865 -0
  267. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sana.py +886 -0
  268. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd.py +1062 -0
  269. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_3.py +994 -0
  270. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py +1058 -0
  271. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py +866 -0
  272. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py +1094 -0
  273. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py +1356 -0
  274. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_xl.py +1345 -0
  275. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py +1544 -0
  276. diffusers-0.32.2/src/diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py +1776 -0
  277. diffusers-0.32.2/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +626 -0
  278. diffusers-0.32.2/src/diffusers/pipelines/pia/pipeline_pia.py +944 -0
  279. diffusers-0.32.2/src/diffusers/pipelines/pipeline_flax_utils.py +611 -0
  280. diffusers-0.32.2/src/diffusers/pipelines/pipeline_loading_utils.py +970 -0
  281. diffusers-0.32.2/src/diffusers/pipelines/pipeline_utils.py +1960 -0
  282. diffusers-0.32.2/src/diffusers/pipelines/pixart_alpha/__init__.py +55 -0
  283. diffusers-0.32.2/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +962 -0
  284. diffusers-0.32.2/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py +873 -0
  285. diffusers-0.32.2/src/diffusers/pipelines/sana/__init__.py +47 -0
  286. diffusers-0.32.2/src/diffusers/pipelines/sana/pipeline_output.py +21 -0
  287. diffusers-0.32.2/src/diffusers/pipelines/sana/pipeline_sana.py +884 -0
  288. diffusers-0.32.2/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py +722 -0
  289. diffusers-0.32.2/src/diffusers/pipelines/shap_e/pipeline_shap_e.py +334 -0
  290. diffusers-0.32.2/src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +321 -0
  291. diffusers-0.32.2/src/diffusers/pipelines/shap_e/renderer.py +1050 -0
  292. diffusers-0.32.2/src/diffusers/pipelines/stable_audio/__init__.py +50 -0
  293. diffusers-0.32.2/src/diffusers/pipelines/stable_audio/modeling_stable_audio.py +158 -0
  294. diffusers-0.32.2/src/diffusers/pipelines/stable_audio/pipeline_stable_audio.py +756 -0
  295. diffusers-0.32.2/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py +528 -0
  296. diffusers-0.32.2/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py +315 -0
  297. diffusers-0.32.2/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py +639 -0
  298. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/__init__.py +202 -0
  299. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +1869 -0
  300. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +473 -0
  301. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py +487 -0
  302. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py +586 -0
  303. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +1098 -0
  304. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +875 -0
  305. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +425 -0
  306. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +1145 -0
  307. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +1338 -0
  308. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +906 -0
  309. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +655 -0
  310. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +809 -0
  311. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +940 -0
  312. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +846 -0
  313. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion/safety_checker.py +126 -0
  314. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_3/__init__.py +54 -0
  315. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_3/pipeline_output.py +21 -0
  316. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py +1140 -0
  317. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py +1036 -0
  318. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py +1250 -0
  319. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py +1097 -0
  320. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py +1531 -0
  321. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py +851 -0
  322. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py +1033 -0
  323. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py +670 -0
  324. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py +892 -0
  325. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py +1025 -0
  326. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py +1180 -0
  327. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +769 -0
  328. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py +109 -0
  329. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py +954 -0
  330. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +1304 -0
  331. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +1498 -0
  332. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +1736 -0
  333. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +992 -0
  334. diffusers-0.32.2/src/diffusers/pipelines/stable_diffusion_xl/watermark.py +42 -0
  335. diffusers-0.32.2/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +726 -0
  336. diffusers-0.32.2/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +942 -0
  337. diffusers-0.32.2/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +1289 -0
  338. diffusers-0.32.2/src/diffusers/pipelines/text_to_video_synthesis/pipeline_output.py +26 -0
  339. diffusers-0.32.2/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +643 -0
  340. diffusers-0.32.2/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +699 -0
  341. diffusers-0.32.2/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +981 -0
  342. diffusers-0.32.2/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +1329 -0
  343. diffusers-0.32.2/src/diffusers/pipelines/unclip/pipeline_unclip.py +493 -0
  344. diffusers-0.32.2/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +420 -0
  345. diffusers-0.32.2/src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py +296 -0
  346. diffusers-0.32.2/src/diffusers/pipelines/unidiffuser/modeling_uvit.py +1197 -0
  347. diffusers-0.32.2/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py +1420 -0
  348. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py +172 -0
  349. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py +76 -0
  350. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +198 -0
  351. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +438 -0
  352. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py +306 -0
  353. diffusers-0.32.2/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +517 -0
  354. diffusers-0.32.2/src/diffusers/quantizers/__init__.py +16 -0
  355. diffusers-0.32.2/src/diffusers/quantizers/auto.py +139 -0
  356. diffusers-0.32.2/src/diffusers/quantizers/base.py +233 -0
  357. diffusers-0.32.2/src/diffusers/quantizers/bitsandbytes/__init__.py +2 -0
  358. diffusers-0.32.2/src/diffusers/quantizers/bitsandbytes/bnb_quantizer.py +561 -0
  359. diffusers-0.32.2/src/diffusers/quantizers/bitsandbytes/utils.py +306 -0
  360. diffusers-0.32.2/src/diffusers/quantizers/gguf/__init__.py +1 -0
  361. diffusers-0.32.2/src/diffusers/quantizers/gguf/gguf_quantizer.py +159 -0
  362. diffusers-0.32.2/src/diffusers/quantizers/gguf/utils.py +456 -0
  363. diffusers-0.32.2/src/diffusers/quantizers/quantization_config.py +669 -0
  364. diffusers-0.32.2/src/diffusers/quantizers/torchao/__init__.py +15 -0
  365. diffusers-0.32.2/src/diffusers/quantizers/torchao/torchao_quantizer.py +292 -0
  366. diffusers-0.32.2/src/diffusers/schedulers/__init__.py +221 -0
  367. diffusers-0.32.2/src/diffusers/schedulers/deprecated/__init__.py +50 -0
  368. diffusers-0.32.2/src/diffusers/schedulers/deprecated/scheduling_karras_ve.py +243 -0
  369. diffusers-0.32.2/src/diffusers/schedulers/scheduling_amused.py +162 -0
  370. diffusers-0.32.2/src/diffusers/schedulers/scheduling_consistency_decoder.py +180 -0
  371. diffusers-0.32.2/src/diffusers/schedulers/scheduling_consistency_models.py +446 -0
  372. diffusers-0.32.2/src/diffusers/schedulers/scheduling_cosine_dpmsolver_multistep.py +572 -0
  373. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddim.py +521 -0
  374. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddim_cogvideox.py +452 -0
  375. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddim_flax.py +314 -0
  376. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddim_inverse.py +374 -0
  377. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddim_parallel.py +646 -0
  378. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddpm.py +559 -0
  379. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddpm_flax.py +303 -0
  380. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddpm_parallel.py +650 -0
  381. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py +230 -0
  382. diffusers-0.32.2/src/diffusers/schedulers/scheduling_deis_multistep.py +886 -0
  383. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpm_cogvideox.py +489 -0
  384. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpmsolver_multistep.py +1166 -0
  385. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py +643 -0
  386. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py +1027 -0
  387. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpmsolver_sde.py +676 -0
  388. diffusers-0.32.2/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py +1168 -0
  389. diffusers-0.32.2/src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py +707 -0
  390. diffusers-0.32.2/src/diffusers/schedulers/scheduling_edm_euler.py +404 -0
  391. diffusers-0.32.2/src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py +482 -0
  392. diffusers-0.32.2/src/diffusers/schedulers/scheduling_euler_discrete.py +757 -0
  393. diffusers-0.32.2/src/diffusers/schedulers/scheduling_flow_match_euler_discrete.py +458 -0
  394. diffusers-0.32.2/src/diffusers/schedulers/scheduling_flow_match_heun_discrete.py +320 -0
  395. diffusers-0.32.2/src/diffusers/schedulers/scheduling_heun_discrete.py +610 -0
  396. diffusers-0.32.2/src/diffusers/schedulers/scheduling_ipndm.py +224 -0
  397. diffusers-0.32.2/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +617 -0
  398. diffusers-0.32.2/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py +589 -0
  399. diffusers-0.32.2/src/diffusers/schedulers/scheduling_karras_ve_flax.py +238 -0
  400. diffusers-0.32.2/src/diffusers/schedulers/scheduling_lcm.py +654 -0
  401. diffusers-0.32.2/src/diffusers/schedulers/scheduling_lms_discrete.py +552 -0
  402. diffusers-0.32.2/src/diffusers/schedulers/scheduling_pndm.py +476 -0
  403. diffusers-0.32.2/src/diffusers/schedulers/scheduling_repaint.py +361 -0
  404. diffusers-0.32.2/src/diffusers/schedulers/scheduling_sasolver.py +1221 -0
  405. diffusers-0.32.2/src/diffusers/schedulers/scheduling_sde_ve.py +301 -0
  406. diffusers-0.32.2/src/diffusers/schedulers/scheduling_tcd.py +691 -0
  407. diffusers-0.32.2/src/diffusers/schedulers/scheduling_unclip.py +355 -0
  408. diffusers-0.32.2/src/diffusers/schedulers/scheduling_unipc_multistep.py +1076 -0
  409. diffusers-0.32.2/src/diffusers/schedulers/scheduling_utils.py +193 -0
  410. diffusers-0.32.2/src/diffusers/schedulers/scheduling_utils_flax.py +291 -0
  411. diffusers-0.32.2/src/diffusers/schedulers/scheduling_vq_diffusion.py +467 -0
  412. diffusers-0.32.2/src/diffusers/training_utils.py +637 -0
  413. diffusers-0.32.2/src/diffusers/utils/__init__.py +140 -0
  414. diffusers-0.32.2/src/diffusers/utils/constants.py +58 -0
  415. diffusers-0.32.2/src/diffusers/utils/doc_utils.py +39 -0
  416. diffusers-0.32.2/src/diffusers/utils/dummy_pt_objects.py +1755 -0
  417. diffusers-0.32.2/src/diffusers/utils/dummy_torch_and_torchsde_objects.py +32 -0
  418. diffusers-0.32.2/src/diffusers/utils/dummy_torch_and_transformers_and_sentencepiece_objects.py +47 -0
  419. diffusers-0.32.2/src/diffusers/utils/dummy_torch_and_transformers_objects.py +2537 -0
  420. diffusers-0.32.2/src/diffusers/utils/dynamic_modules_utils.py +457 -0
  421. diffusers-0.32.2/src/diffusers/utils/export_utils.py +184 -0
  422. diffusers-0.32.2/src/diffusers/utils/hub_utils.py +607 -0
  423. diffusers-0.32.2/src/diffusers/utils/import_utils.py +928 -0
  424. diffusers-0.32.2/src/diffusers/utils/loading_utils.py +162 -0
  425. diffusers-0.32.2/src/diffusers/utils/logging.py +341 -0
  426. diffusers-0.32.2/src/diffusers/utils/peft_utils.py +298 -0
  427. diffusers-0.32.2/src/diffusers/utils/state_dict_utils.py +335 -0
  428. diffusers-0.32.2/src/diffusers/utils/testing_utils.py +1149 -0
  429. diffusers-0.32.2/src/diffusers/utils/torch_utils.py +151 -0
  430. diffusers-0.32.2/src/diffusers/video_processor.py +113 -0
  431. diffusers-0.32.2/src/diffusers.egg-info/PKG-INFO +344 -0
  432. diffusers-0.32.2/src/diffusers.egg-info/SOURCES.txt +555 -0
  433. diffusers-0.32.2/src/diffusers.egg-info/requires.txt +84 -0
  434. diffusers-0.27.1/PKG-INFO +0 -279
  435. diffusers-0.27.1/README.md +0 -248
  436. diffusers-0.27.1/pyproject.toml +0 -27
  437. diffusers-0.27.1/setup.py +0 -281
  438. diffusers-0.27.1/src/diffusers/__init__.py +0 -787
  439. diffusers-0.27.1/src/diffusers/commands/env.py +0 -84
  440. diffusers-0.27.1/src/diffusers/configuration_utils.py +0 -703
  441. diffusers-0.27.1/src/diffusers/dependency_versions_table.py +0 -45
  442. diffusers-0.27.1/src/diffusers/image_processor.py +0 -990
  443. diffusers-0.27.1/src/diffusers/loaders/__init__.py +0 -88
  444. diffusers-0.27.1/src/diffusers/loaders/autoencoder.py +0 -146
  445. diffusers-0.27.1/src/diffusers/loaders/controlnet.py +0 -136
  446. diffusers-0.27.1/src/diffusers/loaders/ip_adapter.py +0 -281
  447. diffusers-0.27.1/src/diffusers/loaders/lora.py +0 -1349
  448. diffusers-0.27.1/src/diffusers/loaders/lora_conversion_utils.py +0 -284
  449. diffusers-0.27.1/src/diffusers/loaders/peft.py +0 -186
  450. diffusers-0.27.1/src/diffusers/loaders/single_file.py +0 -318
  451. diffusers-0.27.1/src/diffusers/loaders/single_file_utils.py +0 -1617
  452. diffusers-0.27.1/src/diffusers/loaders/textual_inversion.py +0 -562
  453. diffusers-0.27.1/src/diffusers/loaders/unet.py +0 -1003
  454. diffusers-0.27.1/src/diffusers/models/__init__.py +0 -103
  455. diffusers-0.27.1/src/diffusers/models/activations.py +0 -123
  456. diffusers-0.27.1/src/diffusers/models/adapter.py +0 -584
  457. diffusers-0.27.1/src/diffusers/models/attention.py +0 -665
  458. diffusers-0.27.1/src/diffusers/models/attention_flax.py +0 -494
  459. diffusers-0.27.1/src/diffusers/models/attention_processor.py +0 -2480
  460. diffusers-0.27.1/src/diffusers/models/autoencoders/__init__.py +0 -5
  461. diffusers-0.27.1/src/diffusers/models/autoencoders/autoencoder_asym_kl.py +0 -186
  462. diffusers-0.27.1/src/diffusers/models/autoencoders/autoencoder_kl.py +0 -489
  463. diffusers-0.27.1/src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py +0 -399
  464. diffusers-0.27.1/src/diffusers/models/autoencoders/autoencoder_tiny.py +0 -347
  465. diffusers-0.27.1/src/diffusers/models/autoencoders/consistency_decoder_vae.py +0 -435
  466. diffusers-0.27.1/src/diffusers/models/autoencoders/vae.py +0 -983
  467. diffusers-0.27.1/src/diffusers/models/controlnet.py +0 -868
  468. diffusers-0.27.1/src/diffusers/models/controlnet_flax.py +0 -395
  469. diffusers-0.27.1/src/diffusers/models/downsampling.py +0 -334
  470. diffusers-0.27.1/src/diffusers/models/dual_transformer_2d.py +0 -20
  471. diffusers-0.27.1/src/diffusers/models/embeddings.py +0 -914
  472. diffusers-0.27.1/src/diffusers/models/embeddings_flax.py +0 -97
  473. diffusers-0.27.1/src/diffusers/models/modeling_flax_pytorch_utils.py +0 -134
  474. diffusers-0.27.1/src/diffusers/models/modeling_flax_utils.py +0 -566
  475. diffusers-0.27.1/src/diffusers/models/modeling_outputs.py +0 -17
  476. diffusers-0.27.1/src/diffusers/models/modeling_pytorch_flax_utils.py +0 -161
  477. diffusers-0.27.1/src/diffusers/models/modeling_utils.py +0 -1021
  478. diffusers-0.27.1/src/diffusers/models/normalization.py +0 -254
  479. diffusers-0.27.1/src/diffusers/models/prior_transformer.py +0 -12
  480. diffusers-0.27.1/src/diffusers/models/resnet.py +0 -802
  481. diffusers-0.27.1/src/diffusers/models/t5_film_transformer.py +0 -70
  482. diffusers-0.27.1/src/diffusers/models/transformer_2d.py +0 -25
  483. diffusers-0.27.1/src/diffusers/models/transformer_temporal.py +0 -34
  484. diffusers-0.27.1/src/diffusers/models/transformers/__init__.py +0 -9
  485. diffusers-0.27.1/src/diffusers/models/transformers/dual_transformer_2d.py +0 -155
  486. diffusers-0.27.1/src/diffusers/models/transformers/prior_transformer.py +0 -380
  487. diffusers-0.27.1/src/diffusers/models/transformers/t5_film_transformer.py +0 -438
  488. diffusers-0.27.1/src/diffusers/models/transformers/transformer_2d.py +0 -456
  489. diffusers-0.27.1/src/diffusers/models/transformers/transformer_temporal.py +0 -379
  490. diffusers-0.27.1/src/diffusers/models/unet_1d.py +0 -26
  491. diffusers-0.27.1/src/diffusers/models/unet_1d_blocks.py +0 -203
  492. diffusers-0.27.1/src/diffusers/models/unet_2d.py +0 -27
  493. diffusers-0.27.1/src/diffusers/models/unet_2d_blocks.py +0 -375
  494. diffusers-0.27.1/src/diffusers/models/unet_2d_condition.py +0 -25
  495. diffusers-0.27.1/src/diffusers/models/unets/unet_1d.py +0 -255
  496. diffusers-0.27.1/src/diffusers/models/unets/unet_1d_blocks.py +0 -702
  497. diffusers-0.27.1/src/diffusers/models/unets/unet_2d.py +0 -346
  498. diffusers-0.27.1/src/diffusers/models/unets/unet_2d_blocks.py +0 -3731
  499. diffusers-0.27.1/src/diffusers/models/unets/unet_2d_condition.py +0 -1311
  500. diffusers-0.27.1/src/diffusers/models/unets/unet_2d_condition_flax.py +0 -453
  501. diffusers-0.27.1/src/diffusers/models/unets/unet_3d_blocks.py +0 -2405
  502. diffusers-0.27.1/src/diffusers/models/unets/unet_3d_condition.py +0 -753
  503. diffusers-0.27.1/src/diffusers/models/unets/unet_i2vgen_xl.py +0 -724
  504. diffusers-0.27.1/src/diffusers/models/unets/unet_kandinsky3.py +0 -535
  505. diffusers-0.27.1/src/diffusers/models/unets/unet_motion_model.py +0 -948
  506. diffusers-0.27.1/src/diffusers/models/unets/unet_spatio_temporal_condition.py +0 -489
  507. diffusers-0.27.1/src/diffusers/models/unets/unet_stable_cascade.py +0 -610
  508. diffusers-0.27.1/src/diffusers/models/unets/uvit_2d.py +0 -470
  509. diffusers-0.27.1/src/diffusers/models/upsampling.py +0 -448
  510. diffusers-0.27.1/src/diffusers/models/vq_model.py +0 -181
  511. diffusers-0.27.1/src/diffusers/optimization.py +0 -361
  512. diffusers-0.27.1/src/diffusers/pipelines/__init__.py +0 -581
  513. diffusers-0.27.1/src/diffusers/pipelines/amused/pipeline_amused.py +0 -328
  514. diffusers-0.27.1/src/diffusers/pipelines/amused/pipeline_amused_img2img.py +0 -347
  515. diffusers-0.27.1/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py +0 -378
  516. diffusers-0.27.1/src/diffusers/pipelines/animatediff/__init__.py +0 -49
  517. diffusers-0.27.1/src/diffusers/pipelines/animatediff/pipeline_animatediff.py +0 -847
  518. diffusers-0.27.1/src/diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py +0 -997
  519. diffusers-0.27.1/src/diffusers/pipelines/animatediff/pipeline_output.py +0 -23
  520. diffusers-0.27.1/src/diffusers/pipelines/audioldm/pipeline_audioldm.py +0 -546
  521. diffusers-0.27.1/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py +0 -1511
  522. diffusers-0.27.1/src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py +0 -980
  523. diffusers-0.27.1/src/diffusers/pipelines/auto_pipeline.py +0 -987
  524. diffusers-0.27.1/src/diffusers/pipelines/blip_diffusion/blip_image_processing.py +0 -318
  525. diffusers-0.27.1/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py +0 -642
  526. diffusers-0.27.1/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py +0 -223
  527. diffusers-0.27.1/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py +0 -348
  528. diffusers-0.27.1/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py +0 -275
  529. diffusers-0.27.1/src/diffusers/pipelines/controlnet/__init__.py +0 -80
  530. diffusers-0.27.1/src/diffusers/pipelines/controlnet/multicontrolnet.py +0 -187
  531. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +0 -1318
  532. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +0 -413
  533. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +0 -1310
  534. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +0 -1620
  535. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +0 -1818
  536. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +0 -1499
  537. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +0 -1626
  538. diffusers-0.27.1/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py +0 -532
  539. diffusers-0.27.1/src/diffusers/pipelines/ddpm/pipeline_ddpm.py +0 -127
  540. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py +0 -788
  541. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +0 -910
  542. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +0 -1029
  543. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +0 -1030
  544. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +0 -1137
  545. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +0 -885
  546. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/pipeline_output.py +0 -28
  547. diffusers-0.27.1/src/diffusers/pipelines/deepfloyd_if/watermark.py +0 -46
  548. diffusers-0.27.1/src/diffusers/pipelines/deprecated/alt_diffusion/modeling_roberta_series.py +0 -124
  549. diffusers-0.27.1/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py +0 -946
  550. diffusers-0.27.1/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py +0 -1018
  551. diffusers-0.27.1/src/diffusers/pipelines/deprecated/repaint/pipeline_repaint.py +0 -230
  552. diffusers-0.27.1/src/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py +0 -269
  553. diffusers-0.27.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py +0 -948
  554. diffusers-0.27.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py +0 -786
  555. diffusers-0.27.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py +0 -824
  556. diffusers-0.27.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py +0 -786
  557. diffusers-0.27.1/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py +0 -1304
  558. diffusers-0.27.1/src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py +0 -2508
  559. diffusers-0.27.1/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py +0 -421
  560. diffusers-0.27.1/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py +0 -556
  561. diffusers-0.27.1/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py +0 -397
  562. diffusers-0.27.1/src/diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py +0 -475
  563. diffusers-0.27.1/src/diffusers/pipelines/deprecated/vq_diffusion/pipeline_vq_diffusion.py +0 -325
  564. diffusers-0.27.1/src/diffusers/pipelines/dit/pipeline_dit.py +0 -233
  565. diffusers-0.27.1/src/diffusers/pipelines/free_init_utils.py +0 -184
  566. diffusers-0.27.1/src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py +0 -798
  567. diffusers-0.27.1/src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py +0 -407
  568. diffusers-0.27.1/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py +0 -814
  569. diffusers-0.27.1/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py +0 -500
  570. diffusers-0.27.1/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py +0 -635
  571. diffusers-0.27.1/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py +0 -547
  572. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +0 -320
  573. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py +0 -851
  574. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +0 -320
  575. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py +0 -381
  576. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +0 -399
  577. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +0 -556
  578. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +0 -549
  579. diffusers-0.27.1/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py +0 -563
  580. diffusers-0.27.1/src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py +0 -98
  581. diffusers-0.27.1/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +0 -589
  582. diffusers-0.27.1/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +0 -654
  583. diffusers-0.27.1/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +0 -956
  584. diffusers-0.27.1/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +0 -888
  585. diffusers-0.27.1/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +0 -746
  586. diffusers-0.27.1/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py +0 -1505
  587. diffusers-0.27.1/src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py +0 -1797
  588. diffusers-0.27.1/src/diffusers/pipelines/ledits_pp/pipeline_output.py +0 -43
  589. diffusers-0.27.1/src/diffusers/pipelines/musicldm/pipeline_musicldm.py +0 -635
  590. diffusers-0.27.1/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +0 -621
  591. diffusers-0.27.1/src/diffusers/pipelines/pia/pipeline_pia.py +0 -1034
  592. diffusers-0.27.1/src/diffusers/pipelines/pipeline_flax_utils.py +0 -616
  593. diffusers-0.27.1/src/diffusers/pipelines/pipeline_loading_utils.py +0 -508
  594. diffusers-0.27.1/src/diffusers/pipelines/pipeline_utils.py +0 -1771
  595. diffusers-0.27.1/src/diffusers/pipelines/pixart_alpha/__init__.py +0 -48
  596. diffusers-0.27.1/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +0 -979
  597. diffusers-0.27.1/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py +0 -718
  598. diffusers-0.27.1/src/diffusers/pipelines/shap_e/pipeline_shap_e.py +0 -334
  599. diffusers-0.27.1/src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +0 -321
  600. diffusers-0.27.1/src/diffusers/pipelines/shap_e/renderer.py +0 -1050
  601. diffusers-0.27.1/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py +0 -482
  602. diffusers-0.27.1/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py +0 -311
  603. diffusers-0.27.1/src/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py +0 -638
  604. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/__init__.py +0 -203
  605. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +0 -1860
  606. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +0 -473
  607. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py +0 -487
  608. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py +0 -586
  609. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +0 -1032
  610. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +0 -860
  611. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +0 -420
  612. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +0 -1113
  613. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +0 -1430
  614. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +0 -807
  615. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +0 -495
  616. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +0 -808
  617. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +0 -932
  618. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +0 -839
  619. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion/safety_checker.py +0 -125
  620. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py +0 -1088
  621. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py +0 -1530
  622. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py +0 -845
  623. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py +0 -1017
  624. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py +0 -664
  625. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py +0 -891
  626. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py +0 -985
  627. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py +0 -933
  628. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +0 -764
  629. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py +0 -109
  630. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py +0 -886
  631. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +0 -1266
  632. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +0 -1442
  633. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +0 -1812
  634. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +0 -976
  635. diffusers-0.27.1/src/diffusers/pipelines/stable_diffusion_xl/watermark.py +0 -36
  636. diffusers-0.27.1/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +0 -673
  637. diffusers-0.27.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +0 -912
  638. diffusers-0.27.1/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +0 -1258
  639. diffusers-0.27.1/src/diffusers/pipelines/text_to_video_synthesis/pipeline_output.py +0 -25
  640. diffusers-0.27.1/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +0 -663
  641. diffusers-0.27.1/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +0 -760
  642. diffusers-0.27.1/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +0 -969
  643. diffusers-0.27.1/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +0 -1315
  644. diffusers-0.27.1/src/diffusers/pipelines/unclip/pipeline_unclip.py +0 -493
  645. diffusers-0.27.1/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +0 -420
  646. diffusers-0.27.1/src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py +0 -296
  647. diffusers-0.27.1/src/diffusers/pipelines/unidiffuser/modeling_uvit.py +0 -1197
  648. diffusers-0.27.1/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py +0 -1419
  649. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py +0 -172
  650. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py +0 -81
  651. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +0 -200
  652. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +0 -438
  653. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py +0 -306
  654. diffusers-0.27.1/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +0 -516
  655. diffusers-0.27.1/src/diffusers/schedulers/__init__.py +0 -211
  656. diffusers-0.27.1/src/diffusers/schedulers/deprecated/__init__.py +0 -50
  657. diffusers-0.27.1/src/diffusers/schedulers/deprecated/scheduling_karras_ve.py +0 -243
  658. diffusers-0.27.1/src/diffusers/schedulers/scheduling_amused.py +0 -162
  659. diffusers-0.27.1/src/diffusers/schedulers/scheduling_consistency_decoder.py +0 -180
  660. diffusers-0.27.1/src/diffusers/schedulers/scheduling_consistency_models.py +0 -448
  661. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddim.py +0 -520
  662. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddim_flax.py +0 -313
  663. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddim_inverse.py +0 -374
  664. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddim_parallel.py +0 -645
  665. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddpm.py +0 -562
  666. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddpm_flax.py +0 -299
  667. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddpm_parallel.py +0 -653
  668. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py +0 -230
  669. diffusers-0.27.1/src/diffusers/schedulers/scheduling_deis_multistep.py +0 -786
  670. diffusers-0.27.1/src/diffusers/schedulers/scheduling_dpmsolver_multistep.py +0 -1029
  671. diffusers-0.27.1/src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py +0 -643
  672. diffusers-0.27.1/src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py +0 -921
  673. diffusers-0.27.1/src/diffusers/schedulers/scheduling_dpmsolver_sde.py +0 -557
  674. diffusers-0.27.1/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py +0 -979
  675. diffusers-0.27.1/src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py +0 -683
  676. diffusers-0.27.1/src/diffusers/schedulers/scheduling_edm_euler.py +0 -381
  677. diffusers-0.27.1/src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py +0 -481
  678. diffusers-0.27.1/src/diffusers/schedulers/scheduling_euler_discrete.py +0 -576
  679. diffusers-0.27.1/src/diffusers/schedulers/scheduling_heun_discrete.py +0 -482
  680. diffusers-0.27.1/src/diffusers/schedulers/scheduling_ipndm.py +0 -224
  681. diffusers-0.27.1/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +0 -508
  682. diffusers-0.27.1/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py +0 -483
  683. diffusers-0.27.1/src/diffusers/schedulers/scheduling_karras_ve_flax.py +0 -238
  684. diffusers-0.27.1/src/diffusers/schedulers/scheduling_lcm.py +0 -660
  685. diffusers-0.27.1/src/diffusers/schedulers/scheduling_lms_discrete.py +0 -475
  686. diffusers-0.27.1/src/diffusers/schedulers/scheduling_pndm.py +0 -476
  687. diffusers-0.27.1/src/diffusers/schedulers/scheduling_repaint.py +0 -361
  688. diffusers-0.27.1/src/diffusers/schedulers/scheduling_sasolver.py +0 -1124
  689. diffusers-0.27.1/src/diffusers/schedulers/scheduling_sde_ve.py +0 -301
  690. diffusers-0.27.1/src/diffusers/schedulers/scheduling_tcd.py +0 -686
  691. diffusers-0.27.1/src/diffusers/schedulers/scheduling_unclip.py +0 -352
  692. diffusers-0.27.1/src/diffusers/schedulers/scheduling_unipc_multistep.py +0 -880
  693. diffusers-0.27.1/src/diffusers/schedulers/scheduling_utils.py +0 -186
  694. diffusers-0.27.1/src/diffusers/schedulers/scheduling_utils_flax.py +0 -293
  695. diffusers-0.27.1/src/diffusers/schedulers/scheduling_vq_diffusion.py +0 -467
  696. diffusers-0.27.1/src/diffusers/training_utils.py +0 -453
  697. diffusers-0.27.1/src/diffusers/utils/__init__.py +0 -124
  698. diffusers-0.27.1/src/diffusers/utils/constants.py +0 -55
  699. diffusers-0.27.1/src/diffusers/utils/doc_utils.py +0 -38
  700. diffusers-0.27.1/src/diffusers/utils/dummy_pt_objects.py +0 -1170
  701. diffusers-0.27.1/src/diffusers/utils/dummy_torch_and_torchsde_objects.py +0 -17
  702. diffusers-0.27.1/src/diffusers/utils/dummy_torch_and_transformers_objects.py +0 -1607
  703. diffusers-0.27.1/src/diffusers/utils/dynamic_modules_utils.py +0 -452
  704. diffusers-0.27.1/src/diffusers/utils/export_utils.py +0 -140
  705. diffusers-0.27.1/src/diffusers/utils/hub_utils.py +0 -493
  706. diffusers-0.27.1/src/diffusers/utils/import_utils.py +0 -726
  707. diffusers-0.27.1/src/diffusers/utils/loading_utils.py +0 -49
  708. diffusers-0.27.1/src/diffusers/utils/logging.py +0 -339
  709. diffusers-0.27.1/src/diffusers/utils/peft_utils.py +0 -268
  710. diffusers-0.27.1/src/diffusers/utils/state_dict_utils.py +0 -324
  711. diffusers-0.27.1/src/diffusers/utils/testing_utils.py +0 -967
  712. diffusers-0.27.1/src/diffusers/utils/torch_utils.py +0 -147
  713. diffusers-0.27.1/src/diffusers.egg-info/PKG-INFO +0 -279
  714. diffusers-0.27.1/src/diffusers.egg-info/SOURCES.txt +0 -404
  715. diffusers-0.27.1/src/diffusers.egg-info/requires.txt +0 -84
  716. {diffusers-0.27.1 → diffusers-0.32.2}/LICENSE +0 -0
  717. {diffusers-0.27.1 → diffusers-0.32.2}/MANIFEST.in +0 -0
  718. {diffusers-0.27.1 → diffusers-0.32.2}/setup.cfg +0 -0
  719. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/commands/__init__.py +0 -0
  720. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/commands/diffusers_cli.py +0 -0
  721. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/commands/fp16_safetensors.py +0 -0
  722. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/dependency_versions_check.py +0 -0
  723. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/experimental/__init__.py +0 -0
  724. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/experimental/rl/__init__.py +0 -0
  725. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/experimental/rl/value_guided_sampling.py +0 -0
  726. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/loaders/utils.py +0 -0
  727. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/models/lora.py +0 -0
  728. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/models/resnet_flax.py +0 -0
  729. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/models/unets/__init__.py +0 -0
  730. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/models/unets/unet_2d_blocks_flax.py +0 -0
  731. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/models/vae_flax.py +0 -0
  732. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/amused/__init__.py +0 -0
  733. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/audioldm/__init__.py +0 -0
  734. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/audioldm2/__init__.py +0 -0
  735. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/blip_diffusion/__init__.py +0 -0
  736. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/consistency_models/__init__.py +0 -0
  737. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/dance_diffusion/__init__.py +0 -0
  738. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py +0 -0
  739. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/ddim/__init__.py +0 -0
  740. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/ddim/pipeline_ddim.py +0 -0
  741. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/ddpm/__init__.py +0 -0
  742. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deepfloyd_if/__init__.py +0 -0
  743. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deepfloyd_if/safety_checker.py +0 -0
  744. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deepfloyd_if/timesteps.py +0 -0
  745. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/__init__.py +0 -0
  746. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/alt_diffusion/__init__.py +0 -0
  747. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_output.py +0 -0
  748. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/audio_diffusion/__init__.py +0 -0
  749. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/audio_diffusion/mel.py +0 -0
  750. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/audio_diffusion/pipeline_audio_diffusion.py +0 -0
  751. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/latent_diffusion_uncond/__init__.py +0 -0
  752. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py +0 -0
  753. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/pndm/__init__.py +0 -0
  754. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/pndm/pipeline_pndm.py +0 -0
  755. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/repaint/__init__.py +0 -0
  756. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/score_sde_ve/__init__.py +0 -0
  757. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/score_sde_ve/pipeline_score_sde_ve.py +0 -0
  758. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/spectrogram_diffusion/__init__.py +0 -0
  759. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py +0 -0
  760. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py +0 -0
  761. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/spectrogram_diffusion/notes_encoder.py +0 -0
  762. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.py +0 -0
  763. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py +0 -0
  764. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/stochastic_karras_ve/__init__.py +0 -0
  765. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/stochastic_karras_ve/pipeline_stochastic_karras_ve.py +0 -0
  766. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/versatile_diffusion/__init__.py +0 -0
  767. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/deprecated/vq_diffusion/__init__.py +0 -0
  768. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/dit/__init__.py +0 -0
  769. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/i2vgen_xl/__init__.py +0 -0
  770. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/kandinsky/__init__.py +0 -0
  771. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/kandinsky/text_encoder.py +0 -0
  772. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/kandinsky2_2/__init__.py +0 -0
  773. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/kandinsky3/__init__.py +0 -0
  774. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/latent_consistency_models/__init__.py +0 -0
  775. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/latent_diffusion/__init__.py +0 -0
  776. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py +0 -0
  777. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/ledits_pp/__init__.py +0 -0
  778. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/musicldm/__init__.py +0 -0
  779. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/onnx_utils.py +0 -0
  780. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/paint_by_example/__init__.py +0 -0
  781. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/paint_by_example/image_encoder.py +0 -0
  782. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/pia/__init__.py +0 -0
  783. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/semantic_stable_diffusion/__init__.py +0 -0
  784. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_output.py +0 -0
  785. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/shap_e/__init__.py +0 -0
  786. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/shap_e/camera.py +0 -0
  787. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_cascade/__init__.py +0 -0
  788. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/clip_image_project_model.py +0 -0
  789. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py +0 -0
  790. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py +0 -0
  791. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py +0 -0
  792. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py +0 -0
  793. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/pipeline_output.py +0 -0
  794. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py +0 -0
  795. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py +0 -0
  796. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_attend_and_excite/__init__.py +0 -0
  797. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_diffedit/__init__.py +0 -0
  798. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py +0 -0
  799. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_k_diffusion/__init__.py +0 -0
  800. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_ldm3d/__init__.py +0 -0
  801. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_panorama/__init__.py +0 -0
  802. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_safe/__init__.py +0 -0
  803. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_safe/pipeline_output.py +0 -0
  804. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_sag/__init__.py +0 -0
  805. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_xl/__init__.py +0 -0
  806. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py +0 -0
  807. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py +0 -0
  808. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/stable_video_diffusion/__init__.py +0 -0
  809. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/t2i_adapter/__init__.py +0 -0
  810. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/text_to_video_synthesis/__init__.py +0 -0
  811. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/unclip/__init__.py +0 -0
  812. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/unclip/text_proj.py +0 -0
  813. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/unidiffuser/__init__.py +0 -0
  814. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/wuerstchen/__init__.py +0 -0
  815. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py +0 -0
  816. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/py.typed +0 -0
  817. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/schedulers/deprecated/scheduling_sde_vp.py +0 -0
  818. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/schedulers/scheduling_euler_discrete_flax.py +0 -0
  819. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/schedulers/scheduling_lms_discrete_flax.py +0 -0
  820. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/schedulers/scheduling_pndm_flax.py +0 -0
  821. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/schedulers/scheduling_sde_ve_flax.py +0 -0
  822. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/accelerate_utils.py +0 -0
  823. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/deprecation_utils.py +0 -0
  824. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_flax_and_transformers_objects.py +0 -0
  825. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_flax_objects.py +0 -0
  826. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_note_seq_objects.py +0 -0
  827. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_onnx_objects.py +0 -0
  828. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_torch_and_librosa_objects.py +0 -0
  829. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_torch_and_scipy_objects.py +0 -0
  830. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py +0 -0
  831. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py +0 -0
  832. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py +0 -0
  833. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/model_card_template.md +0 -0
  834. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/outputs.py +0 -0
  835. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/pil_utils.py +0 -0
  836. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers/utils/versions.py +0 -0
  837. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers.egg-info/dependency_links.txt +0 -0
  838. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers.egg-info/entry_points.txt +0 -0
  839. {diffusers-0.27.1 → diffusers-0.32.2}/src/diffusers.egg-info/top_level.txt +0 -0
@@ -0,0 +1,344 @@
1
+ Metadata-Version: 2.1
2
+ Name: diffusers
3
+ Version: 0.32.2
4
+ Summary: State-of-the-art diffusion in PyTorch and JAX.
5
+ Home-page: https://github.com/huggingface/diffusers
6
+ Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)
7
+ Author-email: diffusers@huggingface.co
8
+ License: Apache 2.0 License
9
+ Keywords: deep learning diffusion jax pytorch stable diffusion audioldm
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Education
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Requires-Python: >=3.8.0
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Requires-Dist: importlib_metadata
25
+ Requires-Dist: filelock
26
+ Requires-Dist: huggingface-hub>=0.23.2
27
+ Requires-Dist: numpy
28
+ Requires-Dist: regex!=2019.12.17
29
+ Requires-Dist: requests
30
+ Requires-Dist: safetensors>=0.3.1
31
+ Requires-Dist: Pillow
32
+ Provides-Extra: quality
33
+ Requires-Dist: urllib3<=2.0.0; extra == "quality"
34
+ Requires-Dist: isort>=5.5.4; extra == "quality"
35
+ Requires-Dist: ruff==0.1.5; extra == "quality"
36
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "quality"
37
+ Provides-Extra: docs
38
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "docs"
39
+ Provides-Extra: training
40
+ Requires-Dist: accelerate>=0.31.0; extra == "training"
41
+ Requires-Dist: datasets; extra == "training"
42
+ Requires-Dist: protobuf<4,>=3.20.3; extra == "training"
43
+ Requires-Dist: tensorboard; extra == "training"
44
+ Requires-Dist: Jinja2; extra == "training"
45
+ Requires-Dist: peft>=0.6.0; extra == "training"
46
+ Provides-Extra: test
47
+ Requires-Dist: compel==0.1.8; extra == "test"
48
+ Requires-Dist: GitPython<3.1.19; extra == "test"
49
+ Requires-Dist: datasets; extra == "test"
50
+ Requires-Dist: Jinja2; extra == "test"
51
+ Requires-Dist: invisible-watermark>=0.2.0; extra == "test"
52
+ Requires-Dist: k-diffusion>=0.0.12; extra == "test"
53
+ Requires-Dist: librosa; extra == "test"
54
+ Requires-Dist: parameterized; extra == "test"
55
+ Requires-Dist: pytest; extra == "test"
56
+ Requires-Dist: pytest-timeout; extra == "test"
57
+ Requires-Dist: pytest-xdist; extra == "test"
58
+ Requires-Dist: requests-mock==1.10.0; extra == "test"
59
+ Requires-Dist: safetensors>=0.3.1; extra == "test"
60
+ Requires-Dist: sentencepiece!=0.1.92,>=0.1.91; extra == "test"
61
+ Requires-Dist: scipy; extra == "test"
62
+ Requires-Dist: torchvision; extra == "test"
63
+ Requires-Dist: transformers>=4.41.2; extra == "test"
64
+ Provides-Extra: torch
65
+ Requires-Dist: torch>=1.4; extra == "torch"
66
+ Requires-Dist: accelerate>=0.31.0; extra == "torch"
67
+ Provides-Extra: flax
68
+ Requires-Dist: jax>=0.4.1; extra == "flax"
69
+ Requires-Dist: jaxlib>=0.4.1; extra == "flax"
70
+ Requires-Dist: flax>=0.4.1; extra == "flax"
71
+ Provides-Extra: dev
72
+ Requires-Dist: urllib3<=2.0.0; extra == "dev"
73
+ Requires-Dist: isort>=5.5.4; extra == "dev"
74
+ Requires-Dist: ruff==0.1.5; extra == "dev"
75
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "dev"
76
+ Requires-Dist: compel==0.1.8; extra == "dev"
77
+ Requires-Dist: GitPython<3.1.19; extra == "dev"
78
+ Requires-Dist: datasets; extra == "dev"
79
+ Requires-Dist: Jinja2; extra == "dev"
80
+ Requires-Dist: invisible-watermark>=0.2.0; extra == "dev"
81
+ Requires-Dist: k-diffusion>=0.0.12; extra == "dev"
82
+ Requires-Dist: librosa; extra == "dev"
83
+ Requires-Dist: parameterized; extra == "dev"
84
+ Requires-Dist: pytest; extra == "dev"
85
+ Requires-Dist: pytest-timeout; extra == "dev"
86
+ Requires-Dist: pytest-xdist; extra == "dev"
87
+ Requires-Dist: requests-mock==1.10.0; extra == "dev"
88
+ Requires-Dist: safetensors>=0.3.1; extra == "dev"
89
+ Requires-Dist: sentencepiece!=0.1.92,>=0.1.91; extra == "dev"
90
+ Requires-Dist: scipy; extra == "dev"
91
+ Requires-Dist: torchvision; extra == "dev"
92
+ Requires-Dist: transformers>=4.41.2; extra == "dev"
93
+ Requires-Dist: accelerate>=0.31.0; extra == "dev"
94
+ Requires-Dist: datasets; extra == "dev"
95
+ Requires-Dist: protobuf<4,>=3.20.3; extra == "dev"
96
+ Requires-Dist: tensorboard; extra == "dev"
97
+ Requires-Dist: Jinja2; extra == "dev"
98
+ Requires-Dist: peft>=0.6.0; extra == "dev"
99
+ Requires-Dist: hf-doc-builder>=0.3.0; extra == "dev"
100
+ Requires-Dist: torch>=1.4; extra == "dev"
101
+ Requires-Dist: accelerate>=0.31.0; extra == "dev"
102
+ Requires-Dist: jax>=0.4.1; extra == "dev"
103
+ Requires-Dist: jaxlib>=0.4.1; extra == "dev"
104
+ Requires-Dist: flax>=0.4.1; extra == "dev"
105
+
106
+ <!---
107
+ Copyright 2022 - The HuggingFace Team. All rights reserved.
108
+
109
+ Licensed under the Apache License, Version 2.0 (the "License");
110
+ you may not use this file except in compliance with the License.
111
+ You may obtain a copy of the License at
112
+
113
+ http://www.apache.org/licenses/LICENSE-2.0
114
+
115
+ Unless required by applicable law or agreed to in writing, software
116
+ distributed under the License is distributed on an "AS IS" BASIS,
117
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
+ See the License for the specific language governing permissions and
119
+ limitations under the License.
120
+ -->
121
+
122
+ <p align="center">
123
+ <br>
124
+ <img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
125
+ <br>
126
+ <p>
127
+ <p align="center">
128
+ <a href="https://github.com/huggingface/diffusers/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue"></a>
129
+ <a href="https://github.com/huggingface/diffusers/releases"><img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/diffusers.svg"></a>
130
+ <a href="https://pepy.tech/project/diffusers"><img alt="GitHub release" src="https://static.pepy.tech/badge/diffusers/month"></a>
131
+ <a href="CODE_OF_CONDUCT.md"><img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg"></a>
132
+ <a href="https://twitter.com/diffuserslib"><img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40diffuserslib"></a>
133
+ </p>
134
+
135
+ 🤗 Diffusers is the go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules. Whether you're looking for a simple inference solution or training your own diffusion models, 🤗 Diffusers is a modular toolbox that supports both. Our library is designed with a focus on [usability over performance](https://huggingface.co/docs/diffusers/conceptual/philosophy#usability-over-performance), [simple over easy](https://huggingface.co/docs/diffusers/conceptual/philosophy#simple-over-easy), and [customizability over abstractions](https://huggingface.co/docs/diffusers/conceptual/philosophy#tweakable-contributorfriendly-over-abstraction).
136
+
137
+ 🤗 Diffusers offers three core components:
138
+
139
+ - State-of-the-art [diffusion pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) that can be run in inference with just a few lines of code.
140
+ - Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
141
+ - Pretrained [models](https://huggingface.co/docs/diffusers/api/models/overview) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
142
+
143
+ ## Installation
144
+
145
+ We recommend installing 🤗 Diffusers in a virtual environment from PyPI or Conda. For more details about installing [PyTorch](https://pytorch.org/get-started/locally/) and [Flax](https://flax.readthedocs.io/en/latest/#installation), please refer to their official documentation.
146
+
147
+ ### PyTorch
148
+
149
+ With `pip` (official package):
150
+
151
+ ```bash
152
+ pip install --upgrade diffusers[torch]
153
+ ```
154
+
155
+ With `conda` (maintained by the community):
156
+
157
+ ```sh
158
+ conda install -c conda-forge diffusers
159
+ ```
160
+
161
+ ### Flax
162
+
163
+ With `pip` (official package):
164
+
165
+ ```bash
166
+ pip install --upgrade diffusers[flax]
167
+ ```
168
+
169
+ ### Apple Silicon (M1/M2) support
170
+
171
+ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggingface.co/docs/diffusers/optimization/mps) guide.
172
+
173
+ ## Quickstart
174
+
175
+ 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 30,000+ checkpoints):
176
+
177
+ ```python
178
+ from diffusers import DiffusionPipeline
179
+ import torch
180
+
181
+ pipeline = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16)
182
+ pipeline.to("cuda")
183
+ pipeline("An image of a squirrel in Picasso style").images[0]
184
+ ```
185
+
186
+ You can also dig into the models and schedulers toolbox to build your own diffusion system:
187
+
188
+ ```python
189
+ from diffusers import DDPMScheduler, UNet2DModel
190
+ from PIL import Image
191
+ import torch
192
+
193
+ scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
194
+ model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
195
+ scheduler.set_timesteps(50)
196
+
197
+ sample_size = model.config.sample_size
198
+ noise = torch.randn((1, 3, sample_size, sample_size), device="cuda")
199
+ input = noise
200
+
201
+ for t in scheduler.timesteps:
202
+ with torch.no_grad():
203
+ noisy_residual = model(input, t).sample
204
+ prev_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
205
+ input = prev_noisy_sample
206
+
207
+ image = (input / 2 + 0.5).clamp(0, 1)
208
+ image = image.cpu().permute(0, 2, 3, 1).numpy()[0]
209
+ image = Image.fromarray((image * 255).round().astype("uint8"))
210
+ image
211
+ ```
212
+
213
+ Check out the [Quickstart](https://huggingface.co/docs/diffusers/quicktour) to launch your diffusion journey today!
214
+
215
+ ## How to navigate the documentation
216
+
217
+ | **Documentation** | **What can I learn?** |
218
+ |---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
219
+ | [Tutorial](https://huggingface.co/docs/diffusers/tutorials/tutorial_overview) | A basic crash course for learning how to use the library's most important features like using models and schedulers to build your own diffusion system, and training your own diffusion model. |
220
+ | [Loading](https://huggingface.co/docs/diffusers/using-diffusers/loading) | Guides for how to load and configure all the components (pipelines, models, and schedulers) of the library, as well as how to use different schedulers. |
221
+ | [Pipelines for inference](https://huggingface.co/docs/diffusers/using-diffusers/overview_techniques) | Guides for how to use pipelines for different inference tasks, batched generation, controlling generated outputs and randomness, and how to contribute a pipeline to the library. |
222
+ | [Optimization](https://huggingface.co/docs/diffusers/optimization/fp16) | Guides for how to optimize your diffusion model to run faster and consume less memory. |
223
+ | [Training](https://huggingface.co/docs/diffusers/training/overview) | Guides for how to train a diffusion model for different tasks with different training techniques. |
224
+ ## Contribution
225
+
226
+ We ❤️ contributions from the open-source community!
227
+ If you want to contribute to this library, please check out our [Contribution guide](https://github.com/huggingface/diffusers/blob/main/CONTRIBUTING.md).
228
+ You can look out for [issues](https://github.com/huggingface/diffusers/issues) you'd like to tackle to contribute to the library.
229
+ - See [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for general opportunities to contribute
230
+ - See [New model/pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) to contribute exciting new diffusion models / diffusion pipelines
231
+ - See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
232
+
233
+ Also, say 👋 in our public Discord channel <a href="https://discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white"></a>. We discuss the hottest trends about diffusion models, help each other with contributions, personal projects or just hang out ☕.
234
+
235
+
236
+ ## Popular Tasks & Pipelines
237
+
238
+ <table>
239
+ <tr>
240
+ <th>Task</th>
241
+ <th>Pipeline</th>
242
+ <th>🤗 Hub</th>
243
+ </tr>
244
+ <tr style="border-top: 2px solid black">
245
+ <td>Unconditional Image Generation</td>
246
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/ddpm"> DDPM </a></td>
247
+ <td><a href="https://huggingface.co/google/ddpm-ema-church-256"> google/ddpm-ema-church-256 </a></td>
248
+ </tr>
249
+ <tr style="border-top: 2px solid black">
250
+ <td>Text-to-Image</td>
251
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/text2img">Stable Diffusion Text-to-Image</a></td>
252
+ <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
253
+ </tr>
254
+ <tr>
255
+ <td>Text-to-Image</td>
256
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">unCLIP</a></td>
257
+ <td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
258
+ </tr>
259
+ <tr>
260
+ <td>Text-to-Image</td>
261
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/deepfloyd_if">DeepFloyd IF</a></td>
262
+ <td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
263
+ </tr>
264
+ <tr>
265
+ <td>Text-to-Image</td>
266
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/kandinsky">Kandinsky</a></td>
267
+ <td><a href="https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder"> kandinsky-community/kandinsky-2-2-decoder </a></td>
268
+ </tr>
269
+ <tr style="border-top: 2px solid black">
270
+ <td>Text-guided Image-to-Image</td>
271
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/controlnet">ControlNet</a></td>
272
+ <td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
273
+ </tr>
274
+ <tr>
275
+ <td>Text-guided Image-to-Image</td>
276
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">InstructPix2Pix</a></td>
277
+ <td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
278
+ </tr>
279
+ <tr>
280
+ <td>Text-guided Image-to-Image</td>
281
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/img2img">Stable Diffusion Image-to-Image</a></td>
282
+ <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
283
+ </tr>
284
+ <tr style="border-top: 2px solid black">
285
+ <td>Text-guided Image Inpainting</td>
286
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpainting</a></td>
287
+ <td><a href="https://huggingface.co/runwayml/stable-diffusion-inpainting"> runwayml/stable-diffusion-inpainting </a></td>
288
+ </tr>
289
+ <tr style="border-top: 2px solid black">
290
+ <td>Image Variation</td>
291
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/image_variation">Stable Diffusion Image Variation</a></td>
292
+ <td><a href="https://huggingface.co/lambdalabs/sd-image-variations-diffusers"> lambdalabs/sd-image-variations-diffusers </a></td>
293
+ </tr>
294
+ <tr style="border-top: 2px solid black">
295
+ <td>Super Resolution</td>
296
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/upscale">Stable Diffusion Upscale</a></td>
297
+ <td><a href="https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler"> stabilityai/stable-diffusion-x4-upscaler </a></td>
298
+ </tr>
299
+ <tr>
300
+ <td>Super Resolution</td>
301
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/latent_upscale">Stable Diffusion Latent Upscale</a></td>
302
+ <td><a href="https://huggingface.co/stabilityai/sd-x2-latent-upscaler"> stabilityai/sd-x2-latent-upscaler </a></td>
303
+ </tr>
304
+ </table>
305
+
306
+ ## Popular libraries using 🧨 Diffusers
307
+
308
+ - https://github.com/microsoft/TaskMatrix
309
+ - https://github.com/invoke-ai/InvokeAI
310
+ - https://github.com/InstantID/InstantID
311
+ - https://github.com/apple/ml-stable-diffusion
312
+ - https://github.com/Sanster/lama-cleaner
313
+ - https://github.com/IDEA-Research/Grounded-Segment-Anything
314
+ - https://github.com/ashawkey/stable-dreamfusion
315
+ - https://github.com/deep-floyd/IF
316
+ - https://github.com/bentoml/BentoML
317
+ - https://github.com/bmaltais/kohya_ss
318
+ - +14,000 other amazing GitHub repositories 💪
319
+
320
+ Thank you for using us ❤️.
321
+
322
+ ## Credits
323
+
324
+ This library concretizes previous work by many different authors and would not have been possible without their great research and implementations. We'd like to thank, in particular, the following implementations which have helped us in our development and without which the API could not have been as polished today:
325
+
326
+ - @CompVis' latent diffusion models library, available [here](https://github.com/CompVis/latent-diffusion)
327
+ - @hojonathanho original DDPM implementation, available [here](https://github.com/hojonathanho/diffusion) as well as the extremely useful translation into PyTorch by @pesser, available [here](https://github.com/pesser/pytorch_diffusion)
328
+ - @ermongroup's DDIM implementation, available [here](https://github.com/ermongroup/ddim)
329
+ - @yang-song's Score-VE and Score-VP implementations, available [here](https://github.com/yang-song/score_sde_pytorch)
330
+
331
+ We also want to thank @heejkoo for the very helpful overview of papers, code and resources on diffusion models, available [here](https://github.com/heejkoo/Awesome-Diffusion-Models) as well as @crowsonkb and @rromb for useful discussions and insights.
332
+
333
+ ## Citation
334
+
335
+ ```bibtex
336
+ @misc{von-platen-etal-2022-diffusers,
337
+ author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Dhruv Nair and Sayak Paul and William Berman and Yiyi Xu and Steven Liu and Thomas Wolf},
338
+ title = {Diffusers: State-of-the-art diffusion models},
339
+ year = {2022},
340
+ publisher = {GitHub},
341
+ journal = {GitHub repository},
342
+ howpublished = {\url{https://github.com/huggingface/diffusers}}
343
+ }
344
+ ```
@@ -0,0 +1,239 @@
1
+ <!---
2
+ Copyright 2022 - The HuggingFace Team. All rights reserved.
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ -->
16
+
17
+ <p align="center">
18
+ <br>
19
+ <img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
20
+ <br>
21
+ <p>
22
+ <p align="center">
23
+ <a href="https://github.com/huggingface/diffusers/blob/main/LICENSE"><img alt="GitHub" src="https://img.shields.io/github/license/huggingface/datasets.svg?color=blue"></a>
24
+ <a href="https://github.com/huggingface/diffusers/releases"><img alt="GitHub release" src="https://img.shields.io/github/release/huggingface/diffusers.svg"></a>
25
+ <a href="https://pepy.tech/project/diffusers"><img alt="GitHub release" src="https://static.pepy.tech/badge/diffusers/month"></a>
26
+ <a href="CODE_OF_CONDUCT.md"><img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg"></a>
27
+ <a href="https://twitter.com/diffuserslib"><img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40diffuserslib"></a>
28
+ </p>
29
+
30
+ 🤗 Diffusers is the go-to library for state-of-the-art pretrained diffusion models for generating images, audio, and even 3D structures of molecules. Whether you're looking for a simple inference solution or training your own diffusion models, 🤗 Diffusers is a modular toolbox that supports both. Our library is designed with a focus on [usability over performance](https://huggingface.co/docs/diffusers/conceptual/philosophy#usability-over-performance), [simple over easy](https://huggingface.co/docs/diffusers/conceptual/philosophy#simple-over-easy), and [customizability over abstractions](https://huggingface.co/docs/diffusers/conceptual/philosophy#tweakable-contributorfriendly-over-abstraction).
31
+
32
+ 🤗 Diffusers offers three core components:
33
+
34
+ - State-of-the-art [diffusion pipelines](https://huggingface.co/docs/diffusers/api/pipelines/overview) that can be run in inference with just a few lines of code.
35
+ - Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
36
+ - Pretrained [models](https://huggingface.co/docs/diffusers/api/models/overview) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
37
+
38
+ ## Installation
39
+
40
+ We recommend installing 🤗 Diffusers in a virtual environment from PyPI or Conda. For more details about installing [PyTorch](https://pytorch.org/get-started/locally/) and [Flax](https://flax.readthedocs.io/en/latest/#installation), please refer to their official documentation.
41
+
42
+ ### PyTorch
43
+
44
+ With `pip` (official package):
45
+
46
+ ```bash
47
+ pip install --upgrade diffusers[torch]
48
+ ```
49
+
50
+ With `conda` (maintained by the community):
51
+
52
+ ```sh
53
+ conda install -c conda-forge diffusers
54
+ ```
55
+
56
+ ### Flax
57
+
58
+ With `pip` (official package):
59
+
60
+ ```bash
61
+ pip install --upgrade diffusers[flax]
62
+ ```
63
+
64
+ ### Apple Silicon (M1/M2) support
65
+
66
+ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggingface.co/docs/diffusers/optimization/mps) guide.
67
+
68
+ ## Quickstart
69
+
70
+ 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 30,000+ checkpoints):
71
+
72
+ ```python
73
+ from diffusers import DiffusionPipeline
74
+ import torch
75
+
76
+ pipeline = DiffusionPipeline.from_pretrained("stable-diffusion-v1-5/stable-diffusion-v1-5", torch_dtype=torch.float16)
77
+ pipeline.to("cuda")
78
+ pipeline("An image of a squirrel in Picasso style").images[0]
79
+ ```
80
+
81
+ You can also dig into the models and schedulers toolbox to build your own diffusion system:
82
+
83
+ ```python
84
+ from diffusers import DDPMScheduler, UNet2DModel
85
+ from PIL import Image
86
+ import torch
87
+
88
+ scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
89
+ model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
90
+ scheduler.set_timesteps(50)
91
+
92
+ sample_size = model.config.sample_size
93
+ noise = torch.randn((1, 3, sample_size, sample_size), device="cuda")
94
+ input = noise
95
+
96
+ for t in scheduler.timesteps:
97
+ with torch.no_grad():
98
+ noisy_residual = model(input, t).sample
99
+ prev_noisy_sample = scheduler.step(noisy_residual, t, input).prev_sample
100
+ input = prev_noisy_sample
101
+
102
+ image = (input / 2 + 0.5).clamp(0, 1)
103
+ image = image.cpu().permute(0, 2, 3, 1).numpy()[0]
104
+ image = Image.fromarray((image * 255).round().astype("uint8"))
105
+ image
106
+ ```
107
+
108
+ Check out the [Quickstart](https://huggingface.co/docs/diffusers/quicktour) to launch your diffusion journey today!
109
+
110
+ ## How to navigate the documentation
111
+
112
+ | **Documentation** | **What can I learn?** |
113
+ |---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
114
+ | [Tutorial](https://huggingface.co/docs/diffusers/tutorials/tutorial_overview) | A basic crash course for learning how to use the library's most important features like using models and schedulers to build your own diffusion system, and training your own diffusion model. |
115
+ | [Loading](https://huggingface.co/docs/diffusers/using-diffusers/loading) | Guides for how to load and configure all the components (pipelines, models, and schedulers) of the library, as well as how to use different schedulers. |
116
+ | [Pipelines for inference](https://huggingface.co/docs/diffusers/using-diffusers/overview_techniques) | Guides for how to use pipelines for different inference tasks, batched generation, controlling generated outputs and randomness, and how to contribute a pipeline to the library. |
117
+ | [Optimization](https://huggingface.co/docs/diffusers/optimization/fp16) | Guides for how to optimize your diffusion model to run faster and consume less memory. |
118
+ | [Training](https://huggingface.co/docs/diffusers/training/overview) | Guides for how to train a diffusion model for different tasks with different training techniques. |
119
+ ## Contribution
120
+
121
+ We ❤️ contributions from the open-source community!
122
+ If you want to contribute to this library, please check out our [Contribution guide](https://github.com/huggingface/diffusers/blob/main/CONTRIBUTING.md).
123
+ You can look out for [issues](https://github.com/huggingface/diffusers/issues) you'd like to tackle to contribute to the library.
124
+ - See [Good first issues](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22) for general opportunities to contribute
125
+ - See [New model/pipeline](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+pipeline%2Fmodel%22) to contribute exciting new diffusion models / diffusion pipelines
126
+ - See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
127
+
128
+ Also, say 👋 in our public Discord channel <a href="https://discord.gg/G7tWnz98XR"><img alt="Join us on Discord" src="https://img.shields.io/discord/823813159592001537?color=5865F2&logo=discord&logoColor=white"></a>. We discuss the hottest trends about diffusion models, help each other with contributions, personal projects or just hang out ☕.
129
+
130
+
131
+ ## Popular Tasks & Pipelines
132
+
133
+ <table>
134
+ <tr>
135
+ <th>Task</th>
136
+ <th>Pipeline</th>
137
+ <th>🤗 Hub</th>
138
+ </tr>
139
+ <tr style="border-top: 2px solid black">
140
+ <td>Unconditional Image Generation</td>
141
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/ddpm"> DDPM </a></td>
142
+ <td><a href="https://huggingface.co/google/ddpm-ema-church-256"> google/ddpm-ema-church-256 </a></td>
143
+ </tr>
144
+ <tr style="border-top: 2px solid black">
145
+ <td>Text-to-Image</td>
146
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/text2img">Stable Diffusion Text-to-Image</a></td>
147
+ <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
148
+ </tr>
149
+ <tr>
150
+ <td>Text-to-Image</td>
151
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">unCLIP</a></td>
152
+ <td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
153
+ </tr>
154
+ <tr>
155
+ <td>Text-to-Image</td>
156
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/deepfloyd_if">DeepFloyd IF</a></td>
157
+ <td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
158
+ </tr>
159
+ <tr>
160
+ <td>Text-to-Image</td>
161
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/kandinsky">Kandinsky</a></td>
162
+ <td><a href="https://huggingface.co/kandinsky-community/kandinsky-2-2-decoder"> kandinsky-community/kandinsky-2-2-decoder </a></td>
163
+ </tr>
164
+ <tr style="border-top: 2px solid black">
165
+ <td>Text-guided Image-to-Image</td>
166
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/controlnet">ControlNet</a></td>
167
+ <td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
168
+ </tr>
169
+ <tr>
170
+ <td>Text-guided Image-to-Image</td>
171
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">InstructPix2Pix</a></td>
172
+ <td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
173
+ </tr>
174
+ <tr>
175
+ <td>Text-guided Image-to-Image</td>
176
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/img2img">Stable Diffusion Image-to-Image</a></td>
177
+ <td><a href="https://huggingface.co/stable-diffusion-v1-5/stable-diffusion-v1-5"> stable-diffusion-v1-5/stable-diffusion-v1-5 </a></td>
178
+ </tr>
179
+ <tr style="border-top: 2px solid black">
180
+ <td>Text-guided Image Inpainting</td>
181
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpainting</a></td>
182
+ <td><a href="https://huggingface.co/runwayml/stable-diffusion-inpainting"> runwayml/stable-diffusion-inpainting </a></td>
183
+ </tr>
184
+ <tr style="border-top: 2px solid black">
185
+ <td>Image Variation</td>
186
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/image_variation">Stable Diffusion Image Variation</a></td>
187
+ <td><a href="https://huggingface.co/lambdalabs/sd-image-variations-diffusers"> lambdalabs/sd-image-variations-diffusers </a></td>
188
+ </tr>
189
+ <tr style="border-top: 2px solid black">
190
+ <td>Super Resolution</td>
191
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/upscale">Stable Diffusion Upscale</a></td>
192
+ <td><a href="https://huggingface.co/stabilityai/stable-diffusion-x4-upscaler"> stabilityai/stable-diffusion-x4-upscaler </a></td>
193
+ </tr>
194
+ <tr>
195
+ <td>Super Resolution</td>
196
+ <td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/latent_upscale">Stable Diffusion Latent Upscale</a></td>
197
+ <td><a href="https://huggingface.co/stabilityai/sd-x2-latent-upscaler"> stabilityai/sd-x2-latent-upscaler </a></td>
198
+ </tr>
199
+ </table>
200
+
201
+ ## Popular libraries using 🧨 Diffusers
202
+
203
+ - https://github.com/microsoft/TaskMatrix
204
+ - https://github.com/invoke-ai/InvokeAI
205
+ - https://github.com/InstantID/InstantID
206
+ - https://github.com/apple/ml-stable-diffusion
207
+ - https://github.com/Sanster/lama-cleaner
208
+ - https://github.com/IDEA-Research/Grounded-Segment-Anything
209
+ - https://github.com/ashawkey/stable-dreamfusion
210
+ - https://github.com/deep-floyd/IF
211
+ - https://github.com/bentoml/BentoML
212
+ - https://github.com/bmaltais/kohya_ss
213
+ - +14,000 other amazing GitHub repositories 💪
214
+
215
+ Thank you for using us ❤️.
216
+
217
+ ## Credits
218
+
219
+ This library concretizes previous work by many different authors and would not have been possible without their great research and implementations. We'd like to thank, in particular, the following implementations which have helped us in our development and without which the API could not have been as polished today:
220
+
221
+ - @CompVis' latent diffusion models library, available [here](https://github.com/CompVis/latent-diffusion)
222
+ - @hojonathanho original DDPM implementation, available [here](https://github.com/hojonathanho/diffusion) as well as the extremely useful translation into PyTorch by @pesser, available [here](https://github.com/pesser/pytorch_diffusion)
223
+ - @ermongroup's DDIM implementation, available [here](https://github.com/ermongroup/ddim)
224
+ - @yang-song's Score-VE and Score-VP implementations, available [here](https://github.com/yang-song/score_sde_pytorch)
225
+
226
+ We also want to thank @heejkoo for the very helpful overview of papers, code and resources on diffusion models, available [here](https://github.com/heejkoo/Awesome-Diffusion-Models) as well as @crowsonkb and @rromb for useful discussions and insights.
227
+
228
+ ## Citation
229
+
230
+ ```bibtex
231
+ @misc{von-platen-etal-2022-diffusers,
232
+ author = {Patrick von Platen and Suraj Patil and Anton Lozhkov and Pedro Cuenca and Nathan Lambert and Kashif Rasul and Mishig Davaadorj and Dhruv Nair and Sayak Paul and William Berman and Yiyi Xu and Steven Liu and Thomas Wolf},
233
+ title = {Diffusers: State-of-the-art diffusion models},
234
+ year = {2022},
235
+ publisher = {GitHub},
236
+ journal = {GitHub repository},
237
+ howpublished = {\url{https://github.com/huggingface/diffusers}}
238
+ }
239
+ ```
@@ -0,0 +1,29 @@
1
+ [tool.ruff]
2
+ line-length = 119
3
+
4
+ [tool.ruff.lint]
5
+ # Never enforce `E501` (line length violations).
6
+ ignore = ["C901", "E501", "E741", "F402", "F823"]
7
+ select = ["C", "E", "F", "I", "W"]
8
+
9
+ # Ignore import violations in all `__init__.py` files.
10
+ [tool.ruff.lint.per-file-ignores]
11
+ "__init__.py" = ["E402", "F401", "F403", "F811"]
12
+ "src/diffusers/utils/dummy_*.py" = ["F401"]
13
+
14
+ [tool.ruff.lint.isort]
15
+ lines-after-imports = 2
16
+ known-first-party = ["diffusers"]
17
+
18
+ [tool.ruff.format]
19
+ # Like Black, use double quotes for strings.
20
+ quote-style = "double"
21
+
22
+ # Like Black, indent with spaces, rather than tabs.
23
+ indent-style = "space"
24
+
25
+ # Like Black, respect magic trailing commas.
26
+ skip-magic-trailing-comma = false
27
+
28
+ # Like Black, automatically detect the appropriate line ending.
29
+ line-ending = "auto"