diffusers 0.32.1__py3-none-any.whl → 0.33.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. diffusers/__init__.py +186 -3
  2. diffusers/configuration_utils.py +40 -12
  3. diffusers/dependency_versions_table.py +9 -2
  4. diffusers/hooks/__init__.py +9 -0
  5. diffusers/hooks/faster_cache.py +653 -0
  6. diffusers/hooks/group_offloading.py +793 -0
  7. diffusers/hooks/hooks.py +236 -0
  8. diffusers/hooks/layerwise_casting.py +245 -0
  9. diffusers/hooks/pyramid_attention_broadcast.py +311 -0
  10. diffusers/loaders/__init__.py +6 -0
  11. diffusers/loaders/ip_adapter.py +38 -30
  12. diffusers/loaders/lora_base.py +198 -28
  13. diffusers/loaders/lora_conversion_utils.py +679 -44
  14. diffusers/loaders/lora_pipeline.py +1963 -801
  15. diffusers/loaders/peft.py +169 -84
  16. diffusers/loaders/single_file.py +17 -2
  17. diffusers/loaders/single_file_model.py +53 -5
  18. diffusers/loaders/single_file_utils.py +653 -75
  19. diffusers/loaders/textual_inversion.py +9 -9
  20. diffusers/loaders/transformer_flux.py +8 -9
  21. diffusers/loaders/transformer_sd3.py +120 -39
  22. diffusers/loaders/unet.py +22 -32
  23. diffusers/models/__init__.py +22 -0
  24. diffusers/models/activations.py +9 -9
  25. diffusers/models/attention.py +0 -1
  26. diffusers/models/attention_processor.py +163 -25
  27. diffusers/models/auto_model.py +169 -0
  28. diffusers/models/autoencoders/__init__.py +2 -0
  29. diffusers/models/autoencoders/autoencoder_asym_kl.py +2 -0
  30. diffusers/models/autoencoders/autoencoder_dc.py +106 -4
  31. diffusers/models/autoencoders/autoencoder_kl.py +0 -4
  32. diffusers/models/autoencoders/autoencoder_kl_allegro.py +5 -23
  33. diffusers/models/autoencoders/autoencoder_kl_cogvideox.py +17 -55
  34. diffusers/models/autoencoders/autoencoder_kl_hunyuan_video.py +17 -97
  35. diffusers/models/autoencoders/autoencoder_kl_ltx.py +326 -107
  36. diffusers/models/autoencoders/autoencoder_kl_magvit.py +1094 -0
  37. diffusers/models/autoencoders/autoencoder_kl_mochi.py +21 -56
  38. diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py +11 -42
  39. diffusers/models/autoencoders/autoencoder_kl_wan.py +855 -0
  40. diffusers/models/autoencoders/autoencoder_oobleck.py +1 -0
  41. diffusers/models/autoencoders/autoencoder_tiny.py +0 -4
  42. diffusers/models/autoencoders/consistency_decoder_vae.py +3 -1
  43. diffusers/models/autoencoders/vae.py +31 -141
  44. diffusers/models/autoencoders/vq_model.py +3 -0
  45. diffusers/models/cache_utils.py +108 -0
  46. diffusers/models/controlnets/__init__.py +1 -0
  47. diffusers/models/controlnets/controlnet.py +3 -8
  48. diffusers/models/controlnets/controlnet_flux.py +14 -42
  49. diffusers/models/controlnets/controlnet_sd3.py +58 -34
  50. diffusers/models/controlnets/controlnet_sparsectrl.py +4 -7
  51. diffusers/models/controlnets/controlnet_union.py +27 -18
  52. diffusers/models/controlnets/controlnet_xs.py +7 -46
  53. diffusers/models/controlnets/multicontrolnet_union.py +196 -0
  54. diffusers/models/embeddings.py +18 -7
  55. diffusers/models/model_loading_utils.py +122 -80
  56. diffusers/models/modeling_flax_pytorch_utils.py +1 -1
  57. diffusers/models/modeling_flax_utils.py +1 -1
  58. diffusers/models/modeling_pytorch_flax_utils.py +1 -1
  59. diffusers/models/modeling_utils.py +617 -272
  60. diffusers/models/normalization.py +67 -14
  61. diffusers/models/resnet.py +1 -1
  62. diffusers/models/transformers/__init__.py +6 -0
  63. diffusers/models/transformers/auraflow_transformer_2d.py +9 -35
  64. diffusers/models/transformers/cogvideox_transformer_3d.py +13 -24
  65. diffusers/models/transformers/consisid_transformer_3d.py +789 -0
  66. diffusers/models/transformers/dit_transformer_2d.py +5 -19
  67. diffusers/models/transformers/hunyuan_transformer_2d.py +4 -3
  68. diffusers/models/transformers/latte_transformer_3d.py +20 -15
  69. diffusers/models/transformers/lumina_nextdit2d.py +3 -1
  70. diffusers/models/transformers/pixart_transformer_2d.py +4 -19
  71. diffusers/models/transformers/prior_transformer.py +5 -1
  72. diffusers/models/transformers/sana_transformer.py +144 -40
  73. diffusers/models/transformers/stable_audio_transformer.py +5 -20
  74. diffusers/models/transformers/transformer_2d.py +7 -22
  75. diffusers/models/transformers/transformer_allegro.py +9 -17
  76. diffusers/models/transformers/transformer_cogview3plus.py +6 -17
  77. diffusers/models/transformers/transformer_cogview4.py +462 -0
  78. diffusers/models/transformers/transformer_easyanimate.py +527 -0
  79. diffusers/models/transformers/transformer_flux.py +68 -110
  80. diffusers/models/transformers/transformer_hunyuan_video.py +409 -49
  81. diffusers/models/transformers/transformer_ltx.py +53 -35
  82. diffusers/models/transformers/transformer_lumina2.py +548 -0
  83. diffusers/models/transformers/transformer_mochi.py +6 -17
  84. diffusers/models/transformers/transformer_omnigen.py +469 -0
  85. diffusers/models/transformers/transformer_sd3.py +56 -86
  86. diffusers/models/transformers/transformer_temporal.py +5 -11
  87. diffusers/models/transformers/transformer_wan.py +469 -0
  88. diffusers/models/unets/unet_1d.py +3 -1
  89. diffusers/models/unets/unet_2d.py +21 -20
  90. diffusers/models/unets/unet_2d_blocks.py +19 -243
  91. diffusers/models/unets/unet_2d_condition.py +4 -6
  92. diffusers/models/unets/unet_3d_blocks.py +14 -127
  93. diffusers/models/unets/unet_3d_condition.py +8 -12
  94. diffusers/models/unets/unet_i2vgen_xl.py +5 -13
  95. diffusers/models/unets/unet_kandinsky3.py +0 -4
  96. diffusers/models/unets/unet_motion_model.py +20 -114
  97. diffusers/models/unets/unet_spatio_temporal_condition.py +7 -8
  98. diffusers/models/unets/unet_stable_cascade.py +8 -35
  99. diffusers/models/unets/uvit_2d.py +1 -4
  100. diffusers/optimization.py +2 -2
  101. diffusers/pipelines/__init__.py +57 -8
  102. diffusers/pipelines/allegro/pipeline_allegro.py +22 -2
  103. diffusers/pipelines/amused/pipeline_amused.py +15 -2
  104. diffusers/pipelines/amused/pipeline_amused_img2img.py +15 -2
  105. diffusers/pipelines/amused/pipeline_amused_inpaint.py +15 -2
  106. diffusers/pipelines/animatediff/pipeline_animatediff.py +15 -2
  107. diffusers/pipelines/animatediff/pipeline_animatediff_controlnet.py +15 -3
  108. diffusers/pipelines/animatediff/pipeline_animatediff_sdxl.py +24 -4
  109. diffusers/pipelines/animatediff/pipeline_animatediff_sparsectrl.py +15 -2
  110. diffusers/pipelines/animatediff/pipeline_animatediff_video2video.py +16 -4
  111. diffusers/pipelines/animatediff/pipeline_animatediff_video2video_controlnet.py +16 -4
  112. diffusers/pipelines/audioldm/pipeline_audioldm.py +13 -2
  113. diffusers/pipelines/audioldm2/modeling_audioldm2.py +13 -68
  114. diffusers/pipelines/audioldm2/pipeline_audioldm2.py +39 -9
  115. diffusers/pipelines/aura_flow/pipeline_aura_flow.py +63 -7
  116. diffusers/pipelines/auto_pipeline.py +35 -14
  117. diffusers/pipelines/blip_diffusion/blip_image_processing.py +1 -1
  118. diffusers/pipelines/blip_diffusion/modeling_blip2.py +5 -8
  119. diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py +12 -0
  120. diffusers/pipelines/cogvideo/pipeline_cogvideox.py +22 -6
  121. diffusers/pipelines/cogvideo/pipeline_cogvideox_fun_control.py +22 -6
  122. diffusers/pipelines/cogvideo/pipeline_cogvideox_image2video.py +22 -5
  123. diffusers/pipelines/cogvideo/pipeline_cogvideox_video2video.py +22 -6
  124. diffusers/pipelines/cogview3/pipeline_cogview3plus.py +12 -4
  125. diffusers/pipelines/cogview4/__init__.py +49 -0
  126. diffusers/pipelines/cogview4/pipeline_cogview4.py +684 -0
  127. diffusers/pipelines/cogview4/pipeline_cogview4_control.py +732 -0
  128. diffusers/pipelines/cogview4/pipeline_output.py +21 -0
  129. diffusers/pipelines/consisid/__init__.py +49 -0
  130. diffusers/pipelines/consisid/consisid_utils.py +357 -0
  131. diffusers/pipelines/consisid/pipeline_consisid.py +974 -0
  132. diffusers/pipelines/consisid/pipeline_output.py +20 -0
  133. diffusers/pipelines/consistency_models/pipeline_consistency_models.py +11 -0
  134. diffusers/pipelines/controlnet/pipeline_controlnet.py +6 -5
  135. diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +13 -0
  136. diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +17 -5
  137. diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +31 -12
  138. diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +26 -7
  139. diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +20 -3
  140. diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +22 -3
  141. diffusers/pipelines/controlnet/pipeline_controlnet_union_inpaint_sd_xl.py +26 -25
  142. diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl.py +224 -109
  143. diffusers/pipelines/controlnet/pipeline_controlnet_union_sd_xl_img2img.py +25 -29
  144. diffusers/pipelines/controlnet/pipeline_flax_controlnet.py +7 -4
  145. diffusers/pipelines/controlnet_hunyuandit/pipeline_hunyuandit_controlnet.py +3 -5
  146. diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet.py +121 -10
  147. diffusers/pipelines/controlnet_sd3/pipeline_stable_diffusion_3_controlnet_inpainting.py +122 -11
  148. diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs.py +12 -1
  149. diffusers/pipelines/controlnet_xs/pipeline_controlnet_xs_sd_xl.py +20 -3
  150. diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py +14 -2
  151. diffusers/pipelines/ddim/pipeline_ddim.py +14 -1
  152. diffusers/pipelines/ddpm/pipeline_ddpm.py +15 -1
  153. diffusers/pipelines/deepfloyd_if/pipeline_if.py +12 -0
  154. diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +12 -0
  155. diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +14 -1
  156. diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +12 -0
  157. diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +14 -1
  158. diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +14 -1
  159. diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py +11 -7
  160. diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py +11 -7
  161. diffusers/pipelines/deprecated/repaint/pipeline_repaint.py +1 -1
  162. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py +10 -6
  163. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py +2 -2
  164. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py +11 -7
  165. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_model_editing.py +1 -1
  166. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py +1 -1
  167. diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py +1 -1
  168. diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py +10 -105
  169. diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion.py +1 -1
  170. diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py +1 -1
  171. diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py +1 -1
  172. diffusers/pipelines/deprecated/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py +1 -1
  173. diffusers/pipelines/dit/pipeline_dit.py +15 -2
  174. diffusers/pipelines/easyanimate/__init__.py +52 -0
  175. diffusers/pipelines/easyanimate/pipeline_easyanimate.py +770 -0
  176. diffusers/pipelines/easyanimate/pipeline_easyanimate_control.py +994 -0
  177. diffusers/pipelines/easyanimate/pipeline_easyanimate_inpaint.py +1234 -0
  178. diffusers/pipelines/easyanimate/pipeline_output.py +20 -0
  179. diffusers/pipelines/flux/pipeline_flux.py +53 -21
  180. diffusers/pipelines/flux/pipeline_flux_control.py +9 -12
  181. diffusers/pipelines/flux/pipeline_flux_control_img2img.py +6 -10
  182. diffusers/pipelines/flux/pipeline_flux_control_inpaint.py +8 -10
  183. diffusers/pipelines/flux/pipeline_flux_controlnet.py +185 -13
  184. diffusers/pipelines/flux/pipeline_flux_controlnet_image_to_image.py +8 -10
  185. diffusers/pipelines/flux/pipeline_flux_controlnet_inpainting.py +16 -16
  186. diffusers/pipelines/flux/pipeline_flux_fill.py +107 -39
  187. diffusers/pipelines/flux/pipeline_flux_img2img.py +193 -15
  188. diffusers/pipelines/flux/pipeline_flux_inpaint.py +199 -19
  189. diffusers/pipelines/free_noise_utils.py +3 -3
  190. diffusers/pipelines/hunyuan_video/__init__.py +4 -0
  191. diffusers/pipelines/hunyuan_video/pipeline_hunyuan_skyreels_image2video.py +804 -0
  192. diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video.py +90 -23
  193. diffusers/pipelines/hunyuan_video/pipeline_hunyuan_video_image2video.py +924 -0
  194. diffusers/pipelines/hunyuandit/pipeline_hunyuandit.py +3 -5
  195. diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py +13 -1
  196. diffusers/pipelines/kandinsky/pipeline_kandinsky.py +12 -0
  197. diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py +1 -1
  198. diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py +12 -0
  199. diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py +13 -1
  200. diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py +12 -0
  201. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +12 -1
  202. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +13 -0
  203. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py +12 -0
  204. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +12 -1
  205. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +12 -1
  206. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +12 -0
  207. diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py +12 -0
  208. diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +12 -0
  209. diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +12 -0
  210. diffusers/pipelines/kolors/pipeline_kolors.py +10 -8
  211. diffusers/pipelines/kolors/pipeline_kolors_img2img.py +6 -4
  212. diffusers/pipelines/kolors/text_encoder.py +7 -34
  213. diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +12 -1
  214. diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +13 -1
  215. diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +14 -13
  216. diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py +12 -1
  217. diffusers/pipelines/latte/pipeline_latte.py +36 -7
  218. diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py +67 -13
  219. diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py +60 -15
  220. diffusers/pipelines/ltx/__init__.py +2 -0
  221. diffusers/pipelines/ltx/pipeline_ltx.py +25 -13
  222. diffusers/pipelines/ltx/pipeline_ltx_condition.py +1194 -0
  223. diffusers/pipelines/ltx/pipeline_ltx_image2video.py +31 -17
  224. diffusers/pipelines/lumina/__init__.py +2 -2
  225. diffusers/pipelines/lumina/pipeline_lumina.py +83 -20
  226. diffusers/pipelines/lumina2/__init__.py +48 -0
  227. diffusers/pipelines/lumina2/pipeline_lumina2.py +790 -0
  228. diffusers/pipelines/marigold/__init__.py +2 -0
  229. diffusers/pipelines/marigold/marigold_image_processing.py +127 -14
  230. diffusers/pipelines/marigold/pipeline_marigold_depth.py +31 -16
  231. diffusers/pipelines/marigold/pipeline_marigold_intrinsics.py +721 -0
  232. diffusers/pipelines/marigold/pipeline_marigold_normals.py +31 -16
  233. diffusers/pipelines/mochi/pipeline_mochi.py +14 -18
  234. diffusers/pipelines/musicldm/pipeline_musicldm.py +16 -1
  235. diffusers/pipelines/omnigen/__init__.py +50 -0
  236. diffusers/pipelines/omnigen/pipeline_omnigen.py +512 -0
  237. diffusers/pipelines/omnigen/processor_omnigen.py +327 -0
  238. diffusers/pipelines/onnx_utils.py +5 -3
  239. diffusers/pipelines/pag/pag_utils.py +1 -1
  240. diffusers/pipelines/pag/pipeline_pag_controlnet_sd.py +12 -1
  241. diffusers/pipelines/pag/pipeline_pag_controlnet_sd_inpaint.py +15 -4
  242. diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl.py +20 -3
  243. diffusers/pipelines/pag/pipeline_pag_controlnet_sd_xl_img2img.py +20 -3
  244. diffusers/pipelines/pag/pipeline_pag_hunyuandit.py +1 -3
  245. diffusers/pipelines/pag/pipeline_pag_kolors.py +6 -4
  246. diffusers/pipelines/pag/pipeline_pag_pixart_sigma.py +16 -3
  247. diffusers/pipelines/pag/pipeline_pag_sana.py +65 -8
  248. diffusers/pipelines/pag/pipeline_pag_sd.py +23 -7
  249. diffusers/pipelines/pag/pipeline_pag_sd_3.py +3 -5
  250. diffusers/pipelines/pag/pipeline_pag_sd_3_img2img.py +3 -5
  251. diffusers/pipelines/pag/pipeline_pag_sd_animatediff.py +13 -1
  252. diffusers/pipelines/pag/pipeline_pag_sd_img2img.py +23 -7
  253. diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py +26 -10
  254. diffusers/pipelines/pag/pipeline_pag_sd_xl.py +12 -4
  255. diffusers/pipelines/pag/pipeline_pag_sd_xl_img2img.py +7 -3
  256. diffusers/pipelines/pag/pipeline_pag_sd_xl_inpaint.py +10 -6
  257. diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +13 -3
  258. diffusers/pipelines/pia/pipeline_pia.py +13 -1
  259. diffusers/pipelines/pipeline_flax_utils.py +7 -7
  260. diffusers/pipelines/pipeline_loading_utils.py +193 -83
  261. diffusers/pipelines/pipeline_utils.py +221 -106
  262. diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +17 -5
  263. diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py +17 -4
  264. diffusers/pipelines/sana/__init__.py +2 -0
  265. diffusers/pipelines/sana/pipeline_sana.py +183 -58
  266. diffusers/pipelines/sana/pipeline_sana_sprint.py +889 -0
  267. diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py +12 -2
  268. diffusers/pipelines/shap_e/pipeline_shap_e.py +12 -0
  269. diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +12 -0
  270. diffusers/pipelines/shap_e/renderer.py +6 -6
  271. diffusers/pipelines/stable_audio/pipeline_stable_audio.py +1 -1
  272. diffusers/pipelines/stable_cascade/pipeline_stable_cascade.py +15 -4
  273. diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py +12 -8
  274. diffusers/pipelines/stable_cascade/pipeline_stable_cascade_prior.py +12 -1
  275. diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +3 -2
  276. diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +14 -10
  277. diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py +3 -3
  278. diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py +14 -10
  279. diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py +2 -2
  280. diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py +4 -3
  281. diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py +5 -4
  282. diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py +2 -2
  283. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +18 -13
  284. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +30 -8
  285. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +24 -10
  286. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +28 -12
  287. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +39 -18
  288. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +17 -6
  289. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +13 -3
  290. diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +20 -3
  291. diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +14 -2
  292. diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +13 -1
  293. diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3.py +16 -17
  294. diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_img2img.py +136 -18
  295. diffusers/pipelines/stable_diffusion_3/pipeline_stable_diffusion_3_inpaint.py +150 -21
  296. diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py +15 -3
  297. diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py +26 -11
  298. diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen.py +15 -3
  299. diffusers/pipelines/stable_diffusion_gligen/pipeline_stable_diffusion_gligen_text_image.py +22 -4
  300. diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py +30 -13
  301. diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_xl_k_diffusion.py +12 -4
  302. diffusers/pipelines/stable_diffusion_ldm3d/pipeline_stable_diffusion_ldm3d.py +15 -3
  303. diffusers/pipelines/stable_diffusion_panorama/pipeline_stable_diffusion_panorama.py +15 -3
  304. diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +26 -12
  305. diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py +16 -4
  306. diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py +1 -1
  307. diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +12 -4
  308. diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +7 -3
  309. diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +10 -6
  310. diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +11 -4
  311. diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +13 -2
  312. diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +18 -4
  313. diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +26 -5
  314. diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +13 -1
  315. diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +13 -1
  316. diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +28 -6
  317. diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +26 -4
  318. diffusers/pipelines/transformers_loading_utils.py +121 -0
  319. diffusers/pipelines/unclip/pipeline_unclip.py +11 -1
  320. diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +11 -1
  321. diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py +19 -2
  322. diffusers/pipelines/wan/__init__.py +51 -0
  323. diffusers/pipelines/wan/pipeline_output.py +20 -0
  324. diffusers/pipelines/wan/pipeline_wan.py +593 -0
  325. diffusers/pipelines/wan/pipeline_wan_i2v.py +722 -0
  326. diffusers/pipelines/wan/pipeline_wan_video2video.py +725 -0
  327. diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +7 -31
  328. diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +12 -1
  329. diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +12 -1
  330. diffusers/quantizers/auto.py +5 -1
  331. diffusers/quantizers/base.py +5 -9
  332. diffusers/quantizers/bitsandbytes/bnb_quantizer.py +41 -29
  333. diffusers/quantizers/bitsandbytes/utils.py +30 -20
  334. diffusers/quantizers/gguf/gguf_quantizer.py +1 -0
  335. diffusers/quantizers/gguf/utils.py +4 -2
  336. diffusers/quantizers/quantization_config.py +59 -4
  337. diffusers/quantizers/quanto/__init__.py +1 -0
  338. diffusers/quantizers/quanto/quanto_quantizer.py +177 -0
  339. diffusers/quantizers/quanto/utils.py +60 -0
  340. diffusers/quantizers/torchao/__init__.py +1 -1
  341. diffusers/quantizers/torchao/torchao_quantizer.py +47 -2
  342. diffusers/schedulers/__init__.py +2 -1
  343. diffusers/schedulers/scheduling_consistency_models.py +1 -2
  344. diffusers/schedulers/scheduling_ddim_inverse.py +1 -1
  345. diffusers/schedulers/scheduling_ddpm.py +2 -3
  346. diffusers/schedulers/scheduling_ddpm_parallel.py +1 -2
  347. diffusers/schedulers/scheduling_dpmsolver_multistep.py +12 -4
  348. diffusers/schedulers/scheduling_edm_euler.py +45 -10
  349. diffusers/schedulers/scheduling_flow_match_euler_discrete.py +116 -28
  350. diffusers/schedulers/scheduling_flow_match_heun_discrete.py +7 -6
  351. diffusers/schedulers/scheduling_heun_discrete.py +1 -1
  352. diffusers/schedulers/scheduling_lcm.py +1 -2
  353. diffusers/schedulers/scheduling_lms_discrete.py +1 -1
  354. diffusers/schedulers/scheduling_repaint.py +5 -1
  355. diffusers/schedulers/scheduling_scm.py +265 -0
  356. diffusers/schedulers/scheduling_tcd.py +1 -2
  357. diffusers/schedulers/scheduling_utils.py +2 -1
  358. diffusers/training_utils.py +14 -7
  359. diffusers/utils/__init__.py +10 -2
  360. diffusers/utils/constants.py +13 -1
  361. diffusers/utils/deprecation_utils.py +1 -1
  362. diffusers/utils/dummy_bitsandbytes_objects.py +17 -0
  363. diffusers/utils/dummy_gguf_objects.py +17 -0
  364. diffusers/utils/dummy_optimum_quanto_objects.py +17 -0
  365. diffusers/utils/dummy_pt_objects.py +233 -0
  366. diffusers/utils/dummy_torch_and_transformers_and_opencv_objects.py +17 -0
  367. diffusers/utils/dummy_torch_and_transformers_objects.py +270 -0
  368. diffusers/utils/dummy_torchao_objects.py +17 -0
  369. diffusers/utils/dynamic_modules_utils.py +1 -1
  370. diffusers/utils/export_utils.py +28 -3
  371. diffusers/utils/hub_utils.py +52 -102
  372. diffusers/utils/import_utils.py +121 -221
  373. diffusers/utils/loading_utils.py +14 -1
  374. diffusers/utils/logging.py +1 -2
  375. diffusers/utils/peft_utils.py +6 -14
  376. diffusers/utils/remote_utils.py +425 -0
  377. diffusers/utils/source_code_parsing_utils.py +52 -0
  378. diffusers/utils/state_dict_utils.py +15 -1
  379. diffusers/utils/testing_utils.py +243 -13
  380. diffusers/utils/torch_utils.py +10 -0
  381. diffusers/utils/typing_utils.py +91 -0
  382. diffusers/video_processor.py +1 -1
  383. {diffusers-0.32.1.dist-info → diffusers-0.33.0.dist-info}/METADATA +76 -44
  384. diffusers-0.33.0.dist-info/RECORD +608 -0
  385. {diffusers-0.32.1.dist-info → diffusers-0.33.0.dist-info}/WHEEL +1 -1
  386. diffusers-0.32.1.dist-info/RECORD +0 -550
  387. {diffusers-0.32.1.dist-info → diffusers-0.33.0.dist-info}/LICENSE +0 -0
  388. {diffusers-0.32.1.dist-info → diffusers-0.33.0.dist-info}/entry_points.txt +0 -0
  389. {diffusers-0.32.1.dist-info → diffusers-0.33.0.dist-info}/top_level.txt +0 -0
@@ -241,14 +241,20 @@ def _set_state_dict_into_text_encoder(
241
241
  """
242
242
 
243
243
  text_encoder_state_dict = {
244
- f'{k.replace(prefix, "")}': v for k, v in lora_state_dict.items() if k.startswith(prefix)
244
+ f"{k.replace(prefix, '')}": v for k, v in lora_state_dict.items() if k.startswith(prefix)
245
245
  }
246
246
  text_encoder_state_dict = convert_state_dict_to_peft(convert_state_dict_to_diffusers(text_encoder_state_dict))
247
247
  set_peft_model_state_dict(text_encoder, text_encoder_state_dict, adapter_name="default")
248
248
 
249
249
 
250
250
  def compute_density_for_timestep_sampling(
251
- weighting_scheme: str, batch_size: int, logit_mean: float = None, logit_std: float = None, mode_scale: float = None
251
+ weighting_scheme: str,
252
+ batch_size: int,
253
+ logit_mean: float = None,
254
+ logit_std: float = None,
255
+ mode_scale: float = None,
256
+ device: Union[torch.device, str] = "cpu",
257
+ generator: Optional[torch.Generator] = None,
252
258
  ):
253
259
  """
254
260
  Compute the density for sampling the timesteps when doing SD3 training.
@@ -258,14 +264,13 @@ def compute_density_for_timestep_sampling(
258
264
  SD3 paper reference: https://arxiv.org/abs/2403.03206v1.
259
265
  """
260
266
  if weighting_scheme == "logit_normal":
261
- # See 3.1 in the SD3 paper ($rf/lognorm(0.00,1.00)$).
262
- u = torch.normal(mean=logit_mean, std=logit_std, size=(batch_size,), device="cpu")
267
+ u = torch.normal(mean=logit_mean, std=logit_std, size=(batch_size,), device=device, generator=generator)
263
268
  u = torch.nn.functional.sigmoid(u)
264
269
  elif weighting_scheme == "mode":
265
- u = torch.rand(size=(batch_size,), device="cpu")
270
+ u = torch.rand(size=(batch_size,), device=device, generator=generator)
266
271
  u = 1 - u - mode_scale * (torch.cos(math.pi * u / 2) ** 2 - 1 + u)
267
272
  else:
268
- u = torch.rand(size=(batch_size,), device="cpu")
273
+ u = torch.rand(size=(batch_size,), device=device, generator=generator)
269
274
  return u
270
275
 
271
276
 
@@ -299,6 +304,8 @@ def free_memory():
299
304
  torch.mps.empty_cache()
300
305
  elif is_torch_npu_available():
301
306
  torch_npu.npu.empty_cache()
307
+ elif hasattr(torch, "xpu") and torch.xpu.is_available():
308
+ torch.xpu.empty_cache()
302
309
 
303
310
 
304
311
  # Adapted from torch-ema https://github.com/fadel/pytorch_ema/blob/master/torch_ema/ema.py#L14
@@ -576,7 +583,7 @@ class EMAModel:
576
583
  """
577
584
 
578
585
  if self.temp_stored_params is None:
579
- raise RuntimeError("This ExponentialMovingAverage has no `store()`ed weights " "to `restore()`")
586
+ raise RuntimeError("This ExponentialMovingAverage has no `store()`ed weights to `restore()`")
580
587
  if self.foreach:
581
588
  torch._foreach_copy_(
582
589
  [param.data for param in parameters], [c_param.data for c_param in self.temp_stored_params]
@@ -1,4 +1,4 @@
1
- # Copyright 2024 The HuggingFace Inc. team. All rights reserved.
1
+ # Copyright 2025 The HuggingFace Inc. team. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -70,6 +70,7 @@ from .import_utils import (
70
70
  is_gguf_available,
71
71
  is_gguf_version,
72
72
  is_google_colab,
73
+ is_hf_hub_version,
73
74
  is_inflect_available,
74
75
  is_invisible_watermark_available,
75
76
  is_k_diffusion_available,
@@ -78,6 +79,9 @@ from .import_utils import (
78
79
  is_matplotlib_available,
79
80
  is_note_seq_available,
80
81
  is_onnx_available,
82
+ is_opencv_available,
83
+ is_optimum_quanto_available,
84
+ is_optimum_quanto_version,
81
85
  is_peft_available,
82
86
  is_peft_version,
83
87
  is_safetensors_available,
@@ -91,6 +95,7 @@ from .import_utils import (
91
95
  is_torch_xla_available,
92
96
  is_torch_xla_version,
93
97
  is_torchao_available,
98
+ is_torchao_version,
94
99
  is_torchsde_available,
95
100
  is_torchvision_available,
96
101
  is_transformers_available,
@@ -100,7 +105,7 @@ from .import_utils import (
100
105
  is_xformers_available,
101
106
  requires_backends,
102
107
  )
103
- from .loading_utils import get_module_from_name, load_image, load_video
108
+ from .loading_utils import get_module_from_name, get_submodule_by_name, load_image, load_video
104
109
  from .logging import get_logger
105
110
  from .outputs import BaseOutput
106
111
  from .peft_utils import (
@@ -115,13 +120,16 @@ from .peft_utils import (
115
120
  unscale_lora_layers,
116
121
  )
117
122
  from .pil_utils import PIL_INTERPOLATION, make_image_grid, numpy_to_pil, pt_to_pil
123
+ from .remote_utils import remote_decode
118
124
  from .state_dict_utils import (
119
125
  convert_all_state_dict_to_peft,
120
126
  convert_state_dict_to_diffusers,
121
127
  convert_state_dict_to_kohya,
122
128
  convert_state_dict_to_peft,
123
129
  convert_unet_state_dict_to_peft,
130
+ state_dict_all_zero,
124
131
  )
132
+ from .typing_utils import _get_detailed_type, _is_valid_type
125
133
 
126
134
 
127
135
  logger = get_logger(__name__)
@@ -1,4 +1,4 @@
1
- # Copyright 2024 The HuggingFace Inc. team. All rights reserved.
1
+ # Copyright 2025 The HuggingFace Inc. team. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -40,6 +40,7 @@ HUGGINGFACE_CO_RESOLVE_ENDPOINT = os.environ.get("HF_ENDPOINT", "https://hugging
40
40
  DIFFUSERS_DYNAMIC_MODULE_NAME = "diffusers_modules"
41
41
  HF_MODULES_CACHE = os.getenv("HF_MODULES_CACHE", os.path.join(HF_HOME, "modules"))
42
42
  DEPRECATED_REVISION_ARGS = ["fp16", "non-ema"]
43
+ DIFFUSERS_REQUEST_TIMEOUT = 60
43
44
 
44
45
  # Below should be `True` if the current version of `peft` and `transformers` are compatible with
45
46
  # PEFT backend. Will automatically fall back to PEFT backend if the correct versions of the libraries are
@@ -56,3 +57,14 @@ USE_PEFT_BACKEND = _required_peft_version and _required_transformers_version
56
57
 
57
58
  if USE_PEFT_BACKEND and _CHECK_PEFT:
58
59
  dep_version_check("peft")
60
+
61
+
62
+ DECODE_ENDPOINT_SD_V1 = "https://q1bj3bpq6kzilnsu.us-east-1.aws.endpoints.huggingface.cloud/"
63
+ DECODE_ENDPOINT_SD_XL = "https://x2dmsqunjd6k9prw.us-east-1.aws.endpoints.huggingface.cloud/"
64
+ DECODE_ENDPOINT_FLUX = "https://whhx50ex1aryqvw6.us-east-1.aws.endpoints.huggingface.cloud/"
65
+ DECODE_ENDPOINT_HUNYUAN_VIDEO = "https://o7ywnmrahorts457.us-east-1.aws.endpoints.huggingface.cloud/"
66
+
67
+
68
+ ENCODE_ENDPOINT_SD_V1 = "https://qc6479g0aac6qwy9.us-east-1.aws.endpoints.huggingface.cloud/"
69
+ ENCODE_ENDPOINT_SD_XL = "https://xjqqhmyn62rog84g.us-east-1.aws.endpoints.huggingface.cloud/"
70
+ ENCODE_ENDPOINT_FLUX = "https://ptccx55jz97f9zgo.us-east-1.aws.endpoints.huggingface.cloud/"
@@ -40,7 +40,7 @@ def deprecate(*args, take_from: Optional[Union[Dict, Any]] = None, standard_warn
40
40
  line_number = call_frame.lineno
41
41
  function = call_frame.function
42
42
  key, value = next(iter(deprecated_kwargs.items()))
43
- raise TypeError(f"{function} in {filename} line {line_number-1} got an unexpected keyword argument `{key}`")
43
+ raise TypeError(f"{function} in {filename} line {line_number - 1} got an unexpected keyword argument `{key}`")
44
44
 
45
45
  if len(values) == 0:
46
46
  return
@@ -0,0 +1,17 @@
1
+ # This file is autogenerated by the command `make fix-copies`, do not edit.
2
+ from ..utils import DummyObject, requires_backends
3
+
4
+
5
+ class BitsAndBytesConfig(metaclass=DummyObject):
6
+ _backends = ["bitsandbytes"]
7
+
8
+ def __init__(self, *args, **kwargs):
9
+ requires_backends(self, ["bitsandbytes"])
10
+
11
+ @classmethod
12
+ def from_config(cls, *args, **kwargs):
13
+ requires_backends(cls, ["bitsandbytes"])
14
+
15
+ @classmethod
16
+ def from_pretrained(cls, *args, **kwargs):
17
+ requires_backends(cls, ["bitsandbytes"])
@@ -0,0 +1,17 @@
1
+ # This file is autogenerated by the command `make fix-copies`, do not edit.
2
+ from ..utils import DummyObject, requires_backends
3
+
4
+
5
+ class GGUFQuantizationConfig(metaclass=DummyObject):
6
+ _backends = ["gguf"]
7
+
8
+ def __init__(self, *args, **kwargs):
9
+ requires_backends(self, ["gguf"])
10
+
11
+ @classmethod
12
+ def from_config(cls, *args, **kwargs):
13
+ requires_backends(cls, ["gguf"])
14
+
15
+ @classmethod
16
+ def from_pretrained(cls, *args, **kwargs):
17
+ requires_backends(cls, ["gguf"])
@@ -0,0 +1,17 @@
1
+ # This file is autogenerated by the command `make fix-copies`, do not edit.
2
+ from ..utils import DummyObject, requires_backends
3
+
4
+
5
+ class QuantoConfig(metaclass=DummyObject):
6
+ _backends = ["optimum_quanto"]
7
+
8
+ def __init__(self, *args, **kwargs):
9
+ requires_backends(self, ["optimum_quanto"])
10
+
11
+ @classmethod
12
+ def from_config(cls, *args, **kwargs):
13
+ requires_backends(cls, ["optimum_quanto"])
14
+
15
+ @classmethod
16
+ def from_pretrained(cls, *args, **kwargs):
17
+ requires_backends(cls, ["optimum_quanto"])
@@ -2,6 +2,59 @@
2
2
  from ..utils import DummyObject, requires_backends
3
3
 
4
4
 
5
+ class FasterCacheConfig(metaclass=DummyObject):
6
+ _backends = ["torch"]
7
+
8
+ def __init__(self, *args, **kwargs):
9
+ requires_backends(self, ["torch"])
10
+
11
+ @classmethod
12
+ def from_config(cls, *args, **kwargs):
13
+ requires_backends(cls, ["torch"])
14
+
15
+ @classmethod
16
+ def from_pretrained(cls, *args, **kwargs):
17
+ requires_backends(cls, ["torch"])
18
+
19
+
20
+ class HookRegistry(metaclass=DummyObject):
21
+ _backends = ["torch"]
22
+
23
+ def __init__(self, *args, **kwargs):
24
+ requires_backends(self, ["torch"])
25
+
26
+ @classmethod
27
+ def from_config(cls, *args, **kwargs):
28
+ requires_backends(cls, ["torch"])
29
+
30
+ @classmethod
31
+ def from_pretrained(cls, *args, **kwargs):
32
+ requires_backends(cls, ["torch"])
33
+
34
+
35
+ class PyramidAttentionBroadcastConfig(metaclass=DummyObject):
36
+ _backends = ["torch"]
37
+
38
+ def __init__(self, *args, **kwargs):
39
+ requires_backends(self, ["torch"])
40
+
41
+ @classmethod
42
+ def from_config(cls, *args, **kwargs):
43
+ requires_backends(cls, ["torch"])
44
+
45
+ @classmethod
46
+ def from_pretrained(cls, *args, **kwargs):
47
+ requires_backends(cls, ["torch"])
48
+
49
+
50
+ def apply_faster_cache(*args, **kwargs):
51
+ requires_backends(apply_faster_cache, ["torch"])
52
+
53
+
54
+ def apply_pyramid_attention_broadcast(*args, **kwargs):
55
+ requires_backends(apply_pyramid_attention_broadcast, ["torch"])
56
+
57
+
5
58
  class AllegroTransformer3DModel(metaclass=DummyObject):
6
59
  _backends = ["torch"]
7
60
 
@@ -137,6 +190,21 @@ class AutoencoderKLLTXVideo(metaclass=DummyObject):
137
190
  requires_backends(cls, ["torch"])
138
191
 
139
192
 
193
+ class AutoencoderKLMagvit(metaclass=DummyObject):
194
+ _backends = ["torch"]
195
+
196
+ def __init__(self, *args, **kwargs):
197
+ requires_backends(self, ["torch"])
198
+
199
+ @classmethod
200
+ def from_config(cls, *args, **kwargs):
201
+ requires_backends(cls, ["torch"])
202
+
203
+ @classmethod
204
+ def from_pretrained(cls, *args, **kwargs):
205
+ requires_backends(cls, ["torch"])
206
+
207
+
140
208
  class AutoencoderKLMochi(metaclass=DummyObject):
141
209
  _backends = ["torch"]
142
210
 
@@ -167,6 +235,21 @@ class AutoencoderKLTemporalDecoder(metaclass=DummyObject):
167
235
  requires_backends(cls, ["torch"])
168
236
 
169
237
 
238
+ class AutoencoderKLWan(metaclass=DummyObject):
239
+ _backends = ["torch"]
240
+
241
+ def __init__(self, *args, **kwargs):
242
+ requires_backends(self, ["torch"])
243
+
244
+ @classmethod
245
+ def from_config(cls, *args, **kwargs):
246
+ requires_backends(cls, ["torch"])
247
+
248
+ @classmethod
249
+ def from_pretrained(cls, *args, **kwargs):
250
+ requires_backends(cls, ["torch"])
251
+
252
+
170
253
  class AutoencoderOobleck(metaclass=DummyObject):
171
254
  _backends = ["torch"]
172
255
 
@@ -197,6 +280,36 @@ class AutoencoderTiny(metaclass=DummyObject):
197
280
  requires_backends(cls, ["torch"])
198
281
 
199
282
 
283
+ class AutoModel(metaclass=DummyObject):
284
+ _backends = ["torch"]
285
+
286
+ def __init__(self, *args, **kwargs):
287
+ requires_backends(self, ["torch"])
288
+
289
+ @classmethod
290
+ def from_config(cls, *args, **kwargs):
291
+ requires_backends(cls, ["torch"])
292
+
293
+ @classmethod
294
+ def from_pretrained(cls, *args, **kwargs):
295
+ requires_backends(cls, ["torch"])
296
+
297
+
298
+ class CacheMixin(metaclass=DummyObject):
299
+ _backends = ["torch"]
300
+
301
+ def __init__(self, *args, **kwargs):
302
+ requires_backends(self, ["torch"])
303
+
304
+ @classmethod
305
+ def from_config(cls, *args, **kwargs):
306
+ requires_backends(cls, ["torch"])
307
+
308
+ @classmethod
309
+ def from_pretrained(cls, *args, **kwargs):
310
+ requires_backends(cls, ["torch"])
311
+
312
+
200
313
  class CogVideoXTransformer3DModel(metaclass=DummyObject):
201
314
  _backends = ["torch"]
202
315
 
@@ -227,6 +340,36 @@ class CogView3PlusTransformer2DModel(metaclass=DummyObject):
227
340
  requires_backends(cls, ["torch"])
228
341
 
229
342
 
343
+ class CogView4Transformer2DModel(metaclass=DummyObject):
344
+ _backends = ["torch"]
345
+
346
+ def __init__(self, *args, **kwargs):
347
+ requires_backends(self, ["torch"])
348
+
349
+ @classmethod
350
+ def from_config(cls, *args, **kwargs):
351
+ requires_backends(cls, ["torch"])
352
+
353
+ @classmethod
354
+ def from_pretrained(cls, *args, **kwargs):
355
+ requires_backends(cls, ["torch"])
356
+
357
+
358
+ class ConsisIDTransformer3DModel(metaclass=DummyObject):
359
+ _backends = ["torch"]
360
+
361
+ def __init__(self, *args, **kwargs):
362
+ requires_backends(self, ["torch"])
363
+
364
+ @classmethod
365
+ def from_config(cls, *args, **kwargs):
366
+ requires_backends(cls, ["torch"])
367
+
368
+ @classmethod
369
+ def from_pretrained(cls, *args, **kwargs):
370
+ requires_backends(cls, ["torch"])
371
+
372
+
230
373
  class ConsistencyDecoderVAE(metaclass=DummyObject):
231
374
  _backends = ["torch"]
232
375
 
@@ -302,6 +445,21 @@ class DiTTransformer2DModel(metaclass=DummyObject):
302
445
  requires_backends(cls, ["torch"])
303
446
 
304
447
 
448
+ class EasyAnimateTransformer3DModel(metaclass=DummyObject):
449
+ _backends = ["torch"]
450
+
451
+ def __init__(self, *args, **kwargs):
452
+ requires_backends(self, ["torch"])
453
+
454
+ @classmethod
455
+ def from_config(cls, *args, **kwargs):
456
+ requires_backends(cls, ["torch"])
457
+
458
+ @classmethod
459
+ def from_pretrained(cls, *args, **kwargs):
460
+ requires_backends(cls, ["torch"])
461
+
462
+
305
463
  class FluxControlNetModel(metaclass=DummyObject):
306
464
  _backends = ["torch"]
307
465
 
@@ -467,6 +625,21 @@ class LTXVideoTransformer3DModel(metaclass=DummyObject):
467
625
  requires_backends(cls, ["torch"])
468
626
 
469
627
 
628
+ class Lumina2Transformer2DModel(metaclass=DummyObject):
629
+ _backends = ["torch"]
630
+
631
+ def __init__(self, *args, **kwargs):
632
+ requires_backends(self, ["torch"])
633
+
634
+ @classmethod
635
+ def from_config(cls, *args, **kwargs):
636
+ requires_backends(cls, ["torch"])
637
+
638
+ @classmethod
639
+ def from_pretrained(cls, *args, **kwargs):
640
+ requires_backends(cls, ["torch"])
641
+
642
+
470
643
  class LuminaNextDiT2DModel(metaclass=DummyObject):
471
644
  _backends = ["torch"]
472
645
 
@@ -557,6 +730,21 @@ class MultiControlNetModel(metaclass=DummyObject):
557
730
  requires_backends(cls, ["torch"])
558
731
 
559
732
 
733
+ class OmniGenTransformer2DModel(metaclass=DummyObject):
734
+ _backends = ["torch"]
735
+
736
+ def __init__(self, *args, **kwargs):
737
+ requires_backends(self, ["torch"])
738
+
739
+ @classmethod
740
+ def from_config(cls, *args, **kwargs):
741
+ requires_backends(cls, ["torch"])
742
+
743
+ @classmethod
744
+ def from_pretrained(cls, *args, **kwargs):
745
+ requires_backends(cls, ["torch"])
746
+
747
+
560
748
  class PixArtTransformer2DModel(metaclass=DummyObject):
561
749
  _backends = ["torch"]
562
750
 
@@ -722,6 +910,21 @@ class Transformer2DModel(metaclass=DummyObject):
722
910
  requires_backends(cls, ["torch"])
723
911
 
724
912
 
913
+ class TransformerTemporalModel(metaclass=DummyObject):
914
+ _backends = ["torch"]
915
+
916
+ def __init__(self, *args, **kwargs):
917
+ requires_backends(self, ["torch"])
918
+
919
+ @classmethod
920
+ def from_config(cls, *args, **kwargs):
921
+ requires_backends(cls, ["torch"])
922
+
923
+ @classmethod
924
+ def from_pretrained(cls, *args, **kwargs):
925
+ requires_backends(cls, ["torch"])
926
+
927
+
725
928
  class UNet1DModel(metaclass=DummyObject):
726
929
  _backends = ["torch"]
727
930
 
@@ -857,6 +1060,21 @@ class VQModel(metaclass=DummyObject):
857
1060
  requires_backends(cls, ["torch"])
858
1061
 
859
1062
 
1063
+ class WanTransformer3DModel(metaclass=DummyObject):
1064
+ _backends = ["torch"]
1065
+
1066
+ def __init__(self, *args, **kwargs):
1067
+ requires_backends(self, ["torch"])
1068
+
1069
+ @classmethod
1070
+ def from_config(cls, *args, **kwargs):
1071
+ requires_backends(cls, ["torch"])
1072
+
1073
+ @classmethod
1074
+ def from_pretrained(cls, *args, **kwargs):
1075
+ requires_backends(cls, ["torch"])
1076
+
1077
+
860
1078
  def get_constant_schedule(*args, **kwargs):
861
1079
  requires_backends(get_constant_schedule, ["torch"])
862
1080
 
@@ -1665,6 +1883,21 @@ class SchedulerMixin(metaclass=DummyObject):
1665
1883
  requires_backends(cls, ["torch"])
1666
1884
 
1667
1885
 
1886
+ class SCMScheduler(metaclass=DummyObject):
1887
+ _backends = ["torch"]
1888
+
1889
+ def __init__(self, *args, **kwargs):
1890
+ requires_backends(self, ["torch"])
1891
+
1892
+ @classmethod
1893
+ def from_config(cls, *args, **kwargs):
1894
+ requires_backends(cls, ["torch"])
1895
+
1896
+ @classmethod
1897
+ def from_pretrained(cls, *args, **kwargs):
1898
+ requires_backends(cls, ["torch"])
1899
+
1900
+
1668
1901
  class ScoreSdeVeScheduler(metaclass=DummyObject):
1669
1902
  _backends = ["torch"]
1670
1903
 
@@ -0,0 +1,17 @@
1
+ # This file is autogenerated by the command `make fix-copies`, do not edit.
2
+ from ..utils import DummyObject, requires_backends
3
+
4
+
5
+ class ConsisIDPipeline(metaclass=DummyObject):
6
+ _backends = ["torch", "transformers", "opencv"]
7
+
8
+ def __init__(self, *args, **kwargs):
9
+ requires_backends(self, ["torch", "transformers", "opencv"])
10
+
11
+ @classmethod
12
+ def from_config(cls, *args, **kwargs):
13
+ requires_backends(cls, ["torch", "transformers", "opencv"])
14
+
15
+ @classmethod
16
+ def from_pretrained(cls, *args, **kwargs):
17
+ requires_backends(cls, ["torch", "transformers", "opencv"])