diffusers 0.23.1__tar.gz → 0.25.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {diffusers-0.23.1/src/diffusers.egg-info → diffusers-0.25.0}/PKG-INFO +41 -26
- {diffusers-0.23.1 → diffusers-0.25.0}/README.md +32 -15
- diffusers-0.25.0/pyproject.toml +27 -0
- diffusers-0.25.0/setup.cfg +4 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/setup.py +38 -54
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/__init__.py +26 -2
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/commands/fp16_safetensors.py +10 -11
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/configuration_utils.py +13 -8
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/dependency_versions_check.py +0 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/dependency_versions_table.py +5 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/experimental/rl/value_guided_sampling.py +1 -1
- diffusers-0.25.0/src/diffusers/image_processor.py +888 -0
- diffusers-0.25.0/src/diffusers/loaders/__init__.py +82 -0
- diffusers-0.25.0/src/diffusers/loaders/ip_adapter.py +159 -0
- diffusers-0.25.0/src/diffusers/loaders/lora.py +1553 -0
- diffusers-0.25.0/src/diffusers/loaders/lora_conversion_utils.py +284 -0
- diffusers-0.25.0/src/diffusers/loaders/single_file.py +637 -0
- diffusers-0.25.0/src/diffusers/loaders/textual_inversion.py +455 -0
- diffusers-0.25.0/src/diffusers/loaders/unet.py +828 -0
- diffusers-0.25.0/src/diffusers/loaders/utils.py +59 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/__init__.py +26 -9
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/activations.py +9 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/attention.py +301 -29
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/attention_flax.py +9 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/attention_processor.py +378 -6
- diffusers-0.25.0/src/diffusers/models/autoencoders/__init__.py +5 -0
- {diffusers-0.23.1/src/diffusers/models → diffusers-0.25.0/src/diffusers/models/autoencoders}/autoencoder_asym_kl.py +17 -12
- {diffusers-0.23.1/src/diffusers/models → diffusers-0.25.0/src/diffusers/models/autoencoders}/autoencoder_kl.py +47 -23
- diffusers-0.25.0/src/diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py +402 -0
- {diffusers-0.23.1/src/diffusers/models → diffusers-0.25.0/src/diffusers/models/autoencoders}/autoencoder_tiny.py +24 -28
- {diffusers-0.23.1/src/diffusers/models → diffusers-0.25.0/src/diffusers/models/autoencoders}/consistency_decoder_vae.py +51 -44
- {diffusers-0.23.1/src/diffusers/models → diffusers-0.25.0/src/diffusers/models/autoencoders}/vae.py +71 -17
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/controlnet.py +59 -39
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/controlnet_flax.py +19 -18
- diffusers-0.25.0/src/diffusers/models/downsampling.py +338 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/embeddings.py +112 -29
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/embeddings_flax.py +2 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/lora.py +131 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/modeling_flax_utils.py +14 -8
- diffusers-0.25.0/src/diffusers/models/modeling_outputs.py +17 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/modeling_utils.py +37 -29
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/normalization.py +110 -4
- diffusers-0.25.0/src/diffusers/models/resnet.py +684 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/transformer_2d.py +22 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/transformer_temporal.py +183 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_2d_blocks_flax.py +5 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_2d_condition.py +46 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_2d_condition_flax.py +13 -13
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_3d_blocks.py +957 -173
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_3d_condition.py +16 -8
- diffusers-0.25.0/src/diffusers/models/unet_kandinsky3.py +535 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_motion_model.py +48 -33
- diffusers-0.25.0/src/diffusers/models/unet_spatio_temporal_condition.py +489 -0
- diffusers-0.25.0/src/diffusers/models/upsampling.py +454 -0
- diffusers-0.25.0/src/diffusers/models/uvit_2d.py +471 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/vae_flax.py +7 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/vq_model.py +12 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/optimization.py +16 -9
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/__init__.py +137 -76
- diffusers-0.25.0/src/diffusers/pipelines/amused/__init__.py +62 -0
- diffusers-0.25.0/src/diffusers/pipelines/amused/pipeline_amused.py +328 -0
- diffusers-0.25.0/src/diffusers/pipelines/amused/pipeline_amused_img2img.py +347 -0
- diffusers-0.25.0/src/diffusers/pipelines/amused/pipeline_amused_inpaint.py +378 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/animatediff/pipeline_animatediff.py +66 -8
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/audioldm/pipeline_audioldm.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/auto_pipeline.py +23 -13
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/consistency_models/pipeline_consistency_models.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet.py +238 -35
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +148 -37
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +155 -41
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +123 -43
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +216 -39
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +106 -34
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/ddim/pipeline_ddim.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/ddpm/pipeline_ddpm.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py +13 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +13 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +13 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +13 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +13 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +13 -1
- diffusers-0.25.0/src/diffusers/pipelines/deprecated/__init__.py +153 -0
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/alt_diffusion/__init__.py +3 -3
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_alt_diffusion.py +177 -34
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_alt_diffusion_img2img.py +182 -37
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/alt_diffusion/pipeline_output.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/audio_diffusion/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/audio_diffusion/mel.py +2 -2
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/audio_diffusion/pipeline_audio_diffusion.py +4 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/latent_diffusion_uncond/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/latent_diffusion_uncond/pipeline_latent_diffusion_uncond.py +4 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/pndm/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/pndm/pipeline_pndm.py +4 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/repaint/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/repaint/pipeline_repaint.py +5 -5
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/score_sde_ve/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/score_sde_ve/pipeline_score_sde_ve.py +5 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/__init__.py +6 -6
- diffusers-0.23.1/src/diffusers/pipelines/spectrogram_diffusion/continous_encoder.py → diffusers-0.25.0/src/diffusers/pipelines/deprecated/spectrogram_diffusion/continuous_encoder.py +2 -2
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/midi_utils.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/notes_encoder.py +2 -2
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/spectrogram_diffusion/pipeline_spectrogram_diffusion.py +8 -7
- diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.py +55 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_cycle_diffusion.py +34 -13
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_onnx_stable_diffusion_inpaint_legacy.py +7 -6
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_inpaint_legacy.py +12 -11
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_model_editing.py +17 -11
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_paradigms.py +11 -10
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_pix2pix_zero.py +14 -13
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/stochastic_karras_ve/__init__.py +1 -1
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/stochastic_karras_ve/pipeline_stochastic_karras_ve.py +4 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/__init__.py +3 -3
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/modeling_text_unet.py +83 -51
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion.py +4 -4
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_dual_guided.py +7 -6
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_image_variation.py +7 -6
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py +7 -6
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/vq_diffusion/__init__.py +3 -3
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/vq_diffusion/pipeline_vq_diffusion.py +5 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/dit/pipeline_dit.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py +3 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +1 -1
- diffusers-0.25.0/src/diffusers/pipelines/kandinsky3/__init__.py +49 -0
- diffusers-0.25.0/src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py +98 -0
- diffusers-0.25.0/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +589 -0
- diffusers-0.25.0/src/diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +654 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +111 -11
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +102 -9
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/musicldm/pipeline_musicldm.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/onnx_utils.py +8 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +7 -2
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/pipeline_flax_utils.py +11 -8
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/pipeline_utils.py +63 -42
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +247 -38
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/__init__.py +37 -65
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +75 -78
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +2 -2
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py +2 -4
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +174 -11
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +8 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +178 -11
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +224 -13
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +74 -20
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +4 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +7 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +5 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +5 -0
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_attend_and_excite/__init__.py +48 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_attend_and_excite}/pipeline_stable_diffusion_attend_and_excite.py +6 -2
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_diffedit/__init__.py +48 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_diffedit}/pipeline_stable_diffusion_diffedit.py +3 -3
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_gligen/__init__.py +50 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_gligen}/pipeline_stable_diffusion_gligen.py +3 -2
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_gligen}/pipeline_stable_diffusion_gligen_text_image.py +4 -3
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_k_diffusion/__init__.py +60 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_k_diffusion}/pipeline_stable_diffusion_k_diffusion.py +7 -1
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_ldm3d/__init__.py +48 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_ldm3d}/pipeline_stable_diffusion_ldm3d.py +51 -7
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_panorama/__init__.py +48 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_panorama}/pipeline_stable_diffusion_panorama.py +57 -8
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +58 -6
- diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_sag/__init__.py +48 -0
- {diffusers-0.23.1/src/diffusers/pipelines/stable_diffusion → diffusers-0.25.0/src/diffusers/pipelines/stable_diffusion_sag}/pipeline_stable_diffusion_sag.py +68 -10
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +194 -17
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +205 -16
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +206 -17
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +23 -17
- diffusers-0.25.0/src/diffusers/pipelines/stable_video_diffusion/__init__.py +58 -0
- diffusers-0.25.0/src/diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +652 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +108 -12
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +115 -14
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/text_to_video_synthesis/__init__.py +2 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +6 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +23 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +334 -10
- diffusers-0.25.0/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +1331 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unclip/pipeline_unclip.py +2 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +1 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py +14 -4
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +9 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py +2 -2
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +5 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/__init__.py +4 -4
- diffusers-0.25.0/src/diffusers/schedulers/deprecated/__init__.py +50 -0
- {diffusers-0.23.1/src/diffusers/schedulers → diffusers-0.25.0/src/diffusers/schedulers/deprecated}/scheduling_karras_ve.py +4 -4
- {diffusers-0.23.1/src/diffusers/schedulers → diffusers-0.25.0/src/diffusers/schedulers/deprecated}/scheduling_sde_vp.py +4 -6
- diffusers-0.25.0/src/diffusers/schedulers/scheduling_amused.py +162 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_consistency_models.py +2 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddim.py +1 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddim_inverse.py +2 -7
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddim_parallel.py +1 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddpm.py +47 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddpm_parallel.py +47 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_deis_multistep.py +28 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_dpmsolver_multistep.py +28 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py +28 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_dpmsolver_sde.py +3 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py +28 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py +59 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_euler_discrete.py +102 -16
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_heun_discrete.py +17 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +17 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py +17 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_lcm.py +123 -29
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_lms_discrete.py +3 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_pndm.py +1 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_repaint.py +1 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_unipc_multistep.py +28 -6
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_utils.py +3 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_utils_flax.py +3 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/training_utils.py +1 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/__init__.py +1 -2
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/constants.py +10 -12
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_pt_objects.py +75 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_transformers_objects.py +105 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dynamic_modules_utils.py +18 -22
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/export_utils.py +8 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/hub_utils.py +24 -36
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/logging.py +11 -11
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/outputs.py +5 -5
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/peft_utils.py +88 -44
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/state_dict_utils.py +8 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/testing_utils.py +199 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/torch_utils.py +4 -4
- {diffusers-0.23.1 → diffusers-0.25.0/src/diffusers.egg-info}/PKG-INFO +41 -26
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers.egg-info/SOURCES.txt +90 -54
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers.egg-info/entry_points.txt +0 -1
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers.egg-info/requires.txt +28 -30
- diffusers-0.23.1/pyproject.toml +0 -18
- diffusers-0.23.1/setup.cfg +0 -24
- diffusers-0.23.1/src/diffusers/image_processor.py +0 -476
- diffusers-0.23.1/src/diffusers/loaders.py +0 -3336
- diffusers-0.23.1/src/diffusers/models/resnet.py +0 -1037
- {diffusers-0.23.1 → diffusers-0.25.0}/LICENSE +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/MANIFEST.in +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/commands/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/commands/diffusers_cli.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/commands/env.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/experimental/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/experimental/rl/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/adapter.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/dual_transformer_2d.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/modeling_flax_pytorch_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/modeling_pytorch_flax_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/prior_transformer.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/resnet_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/t5_film_transformer.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_1d.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_1d_blocks.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_2d.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/models/unet_2d_blocks.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/animatediff/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/audioldm/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/audioldm2/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/audioldm2/modeling_audioldm2.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/audioldm2/pipeline_audioldm2.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/blip_diffusion/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/blip_diffusion/blip_image_processing.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/blip_diffusion/modeling_blip2.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/blip_diffusion/pipeline_blip_diffusion.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/consistency_models/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/multicontrolnet.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_controlnet_blip_diffusion.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/controlnet/pipeline_flax_controlnet.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/dance_diffusion/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/ddim/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/ddpm/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/safety_checker.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/timesteps.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/deepfloyd_if/watermark.py +0 -0
- {diffusers-0.23.1/src/diffusers/pipelines → diffusers-0.25.0/src/diffusers/pipelines/deprecated}/alt_diffusion/modeling_roberta_series.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/dit/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_inpaint.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky/text_encoder.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_controlnet_img2img.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_consistency_models/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_diffusion/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/musicldm/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/paint_by_example/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/paint_by_example/image_encoder.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/pixart_alpha/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/semantic_stable_diffusion/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/semantic_stable_diffusion/pipeline_semantic_stable_diffusion.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/shap_e/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/shap_e/camera.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/shap_e/pipeline_shap_e.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +3 -3
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/shap_e/renderer.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/clip_image_project_model.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_img2img.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion_inpaint.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/safety_checker.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_safe/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_safe/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_safe/safety_checker.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_flax_stable_diffusion_xl.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/stable_diffusion_xl/watermark.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/t2i_adapter/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/text_to_video_synthesis/pipeline_output.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unclip/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unclip/text_proj.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unidiffuser/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unidiffuser/modeling_text_decoder.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unidiffuser/modeling_uvit.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/__init__.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/pipelines/wuerstchen/modeling_wuerstchen_diffnext.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/py.typed +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_consistency_decoder.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddim_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddpm_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ddpm_wuerstchen.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_dpmsolver_multistep_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_euler_discrete_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_ipndm.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_karras_ve_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_lms_discrete_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_pndm_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_sde_ve.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_sde_ve_flax.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_unclip.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/schedulers/scheduling_vq_diffusion.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/accelerate_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/deprecation_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/doc_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_flax_and_transformers_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_flax_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_note_seq_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_onnx_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_librosa_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_scipy_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_torchsde_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_transformers_and_k_diffusion_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_torch_and_transformers_and_onnx_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/dummy_transformers_and_torch_and_note_seq_objects.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/import_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/loading_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/model_card_template.md +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/pil_utils.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers/utils/versions.py +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers.egg-info/dependency_links.txt +0 -0
- {diffusers-0.23.1 → diffusers-0.25.0}/src/diffusers.egg-info/top_level.txt +0 -0
@@ -1,34 +1,50 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: diffusers
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.25.0
|
4
4
|
Summary: State-of-the-art diffusion in PyTorch and JAX.
|
5
5
|
Home-page: https://github.com/huggingface/diffusers
|
6
|
-
Author: The
|
6
|
+
Author: The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)
|
7
7
|
Author-email: patrick@huggingface.co
|
8
|
-
License: Apache
|
8
|
+
License: Apache 2.0 License
|
9
9
|
Keywords: deep learning diffusion jax pytorch stable diffusion audioldm
|
10
|
-
Platform: UNKNOWN
|
11
10
|
Classifier: Development Status :: 5 - Production/Stable
|
12
11
|
Classifier: Intended Audience :: Developers
|
13
12
|
Classifier: Intended Audience :: Education
|
14
13
|
Classifier: Intended Audience :: Science/Research
|
15
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
16
15
|
Classifier: Operating System :: OS Independent
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
17
17
|
Classifier: Programming Language :: Python :: 3
|
18
18
|
Classifier: Programming Language :: Python :: 3.8
|
19
19
|
Classifier: Programming Language :: Python :: 3.9
|
20
|
-
Classifier:
|
20
|
+
Classifier: Programming Language :: Python :: 3.10
|
21
21
|
Requires-Python: >=3.8.0
|
22
22
|
Description-Content-Type: text/markdown
|
23
|
-
Provides-Extra: dev
|
24
|
-
Provides-Extra: docs
|
25
|
-
Provides-Extra: flax
|
26
23
|
Provides-Extra: quality
|
24
|
+
Provides-Extra: docs
|
25
|
+
Provides-Extra: training
|
27
26
|
Provides-Extra: test
|
28
27
|
Provides-Extra: torch
|
29
|
-
Provides-Extra:
|
28
|
+
Provides-Extra: flax
|
29
|
+
Provides-Extra: dev
|
30
30
|
License-File: LICENSE
|
31
31
|
|
32
|
+
<!---
|
33
|
+
Copyright 2022 - The HuggingFace Team. All rights reserved.
|
34
|
+
|
35
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
36
|
+
you may not use this file except in compliance with the License.
|
37
|
+
You may obtain a copy of the License at
|
38
|
+
|
39
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
40
|
+
|
41
|
+
Unless required by applicable law or agreed to in writing, software
|
42
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
43
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
44
|
+
See the License for the specific language governing permissions and
|
45
|
+
limitations under the License.
|
46
|
+
-->
|
47
|
+
|
32
48
|
<p align="center">
|
33
49
|
<br>
|
34
50
|
<img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
|
@@ -45,7 +61,10 @@ License-File: LICENSE
|
|
45
61
|
<img alt="GitHub release" src="https://static.pepy.tech/badge/diffusers/month">
|
46
62
|
</a>
|
47
63
|
<a href="CODE_OF_CONDUCT.md">
|
48
|
-
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.
|
64
|
+
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg">
|
65
|
+
</a>
|
66
|
+
<a href="https://twitter.com/diffuserslib">
|
67
|
+
<img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40diffuserslib">
|
49
68
|
</a>
|
50
69
|
</p>
|
51
70
|
|
@@ -55,11 +74,11 @@ License-File: LICENSE
|
|
55
74
|
|
56
75
|
- 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.
|
57
76
|
- Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
|
58
|
-
- Pretrained [models](https://huggingface.co/docs/diffusers/api/models) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
|
77
|
+
- 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.
|
59
78
|
|
60
79
|
## Installation
|
61
80
|
|
62
|
-
We recommend installing 🤗 Diffusers in a virtual environment from
|
81
|
+
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.
|
63
82
|
|
64
83
|
### PyTorch
|
65
84
|
|
@@ -89,7 +108,7 @@ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggi
|
|
89
108
|
|
90
109
|
## Quickstart
|
91
110
|
|
92
|
-
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
|
111
|
+
Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 16000+ checkpoints):
|
93
112
|
|
94
113
|
```python
|
95
114
|
from diffusers import DiffusionPipeline
|
@@ -106,14 +125,13 @@ You can also dig into the models and schedulers toolbox to build your own diffus
|
|
106
125
|
from diffusers import DDPMScheduler, UNet2DModel
|
107
126
|
from PIL import Image
|
108
127
|
import torch
|
109
|
-
import numpy as np
|
110
128
|
|
111
129
|
scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
|
112
130
|
model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
|
113
131
|
scheduler.set_timesteps(50)
|
114
132
|
|
115
133
|
sample_size = model.config.sample_size
|
116
|
-
noise = torch.randn((1, 3, sample_size, sample_size)
|
134
|
+
noise = torch.randn((1, 3, sample_size, sample_size), device="cuda")
|
117
135
|
input = noise
|
118
136
|
|
119
137
|
for t in scheduler.timesteps:
|
@@ -148,8 +166,7 @@ You can look out for [issues](https://github.com/huggingface/diffusers/issues) y
|
|
148
166
|
- 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
|
149
167
|
- See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
|
150
168
|
|
151
|
-
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
|
152
|
-
just hang out ☕.
|
169
|
+
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 ☕.
|
153
170
|
|
154
171
|
|
155
172
|
## Popular Tasks & Pipelines
|
@@ -172,12 +189,12 @@ just hang out ☕.
|
|
172
189
|
</tr>
|
173
190
|
<tr>
|
174
191
|
<td>Text-to-Image</td>
|
175
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">
|
192
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">unCLIP</a></td>
|
176
193
|
<td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
|
177
194
|
</tr>
|
178
195
|
<tr>
|
179
196
|
<td>Text-to-Image</td>
|
180
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/
|
197
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/deepfloyd_if">DeepFloyd IF</a></td>
|
181
198
|
<td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
|
182
199
|
</tr>
|
183
200
|
<tr>
|
@@ -187,12 +204,12 @@ just hang out ☕.
|
|
187
204
|
</tr>
|
188
205
|
<tr style="border-top: 2px solid black">
|
189
206
|
<td>Text-guided Image-to-Image</td>
|
190
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/
|
207
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/controlnet">ControlNet</a></td>
|
191
208
|
<td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
|
192
209
|
</tr>
|
193
210
|
<tr>
|
194
211
|
<td>Text-guided Image-to-Image</td>
|
195
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">
|
212
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">InstructPix2Pix</a></td>
|
196
213
|
<td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
|
197
214
|
</tr>
|
198
215
|
<tr>
|
@@ -202,7 +219,7 @@ just hang out ☕.
|
|
202
219
|
</tr>
|
203
220
|
<tr style="border-top: 2px solid black">
|
204
221
|
<td>Text-guided Image Inpainting</td>
|
205
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion
|
222
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpainting</a></td>
|
206
223
|
<td><a href="https://huggingface.co/runwayml/stable-diffusion-inpainting"> runwayml/stable-diffusion-inpainting </a></td>
|
207
224
|
</tr>
|
208
225
|
<tr style="border-top: 2px solid black">
|
@@ -233,9 +250,9 @@ just hang out ☕.
|
|
233
250
|
- https://github.com/deep-floyd/IF
|
234
251
|
- https://github.com/bentoml/BentoML
|
235
252
|
- https://github.com/bmaltais/kohya_ss
|
236
|
-
- +
|
253
|
+
- +7000 other amazing GitHub repositories 💪
|
237
254
|
|
238
|
-
Thank you for using us
|
255
|
+
Thank you for using us ❤️.
|
239
256
|
|
240
257
|
## Credits
|
241
258
|
|
@@ -260,5 +277,3 @@ We also want to thank @heejkoo for the very helpful overview of papers, code and
|
|
260
277
|
howpublished = {\url{https://github.com/huggingface/diffusers}}
|
261
278
|
}
|
262
279
|
```
|
263
|
-
|
264
|
-
|
@@ -1,3 +1,19 @@
|
|
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
|
+
|
1
17
|
<p align="center">
|
2
18
|
<br>
|
3
19
|
<img src="https://raw.githubusercontent.com/huggingface/diffusers/main/docs/source/en/imgs/diffusers_library.jpg" width="400"/>
|
@@ -14,7 +30,10 @@
|
|
14
30
|
<img alt="GitHub release" src="https://static.pepy.tech/badge/diffusers/month">
|
15
31
|
</a>
|
16
32
|
<a href="CODE_OF_CONDUCT.md">
|
17
|
-
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.
|
33
|
+
<img alt="Contributor Covenant" src="https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg">
|
34
|
+
</a>
|
35
|
+
<a href="https://twitter.com/diffuserslib">
|
36
|
+
<img alt="X account" src="https://img.shields.io/twitter/url/https/twitter.com/diffuserslib.svg?style=social&label=Follow%20%40diffuserslib">
|
18
37
|
</a>
|
19
38
|
</p>
|
20
39
|
|
@@ -24,11 +43,11 @@
|
|
24
43
|
|
25
44
|
- 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.
|
26
45
|
- Interchangeable noise [schedulers](https://huggingface.co/docs/diffusers/api/schedulers/overview) for different diffusion speeds and output quality.
|
27
|
-
- Pretrained [models](https://huggingface.co/docs/diffusers/api/models) that can be used as building blocks, and combined with schedulers, for creating your own end-to-end diffusion systems.
|
46
|
+
- 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.
|
28
47
|
|
29
48
|
## Installation
|
30
49
|
|
31
|
-
We recommend installing 🤗 Diffusers in a virtual environment from
|
50
|
+
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.
|
32
51
|
|
33
52
|
### PyTorch
|
34
53
|
|
@@ -58,7 +77,7 @@ Please refer to the [How to use Stable Diffusion in Apple Silicon](https://huggi
|
|
58
77
|
|
59
78
|
## Quickstart
|
60
79
|
|
61
|
-
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
|
80
|
+
Generating outputs is super easy with 🤗 Diffusers. To generate an image from text, use the `from_pretrained` method to load any pretrained diffusion model (browse the [Hub](https://huggingface.co/models?library=diffusers&sort=downloads) for 16000+ checkpoints):
|
62
81
|
|
63
82
|
```python
|
64
83
|
from diffusers import DiffusionPipeline
|
@@ -75,14 +94,13 @@ You can also dig into the models and schedulers toolbox to build your own diffus
|
|
75
94
|
from diffusers import DDPMScheduler, UNet2DModel
|
76
95
|
from PIL import Image
|
77
96
|
import torch
|
78
|
-
import numpy as np
|
79
97
|
|
80
98
|
scheduler = DDPMScheduler.from_pretrained("google/ddpm-cat-256")
|
81
99
|
model = UNet2DModel.from_pretrained("google/ddpm-cat-256").to("cuda")
|
82
100
|
scheduler.set_timesteps(50)
|
83
101
|
|
84
102
|
sample_size = model.config.sample_size
|
85
|
-
noise = torch.randn((1, 3, sample_size, sample_size)
|
103
|
+
noise = torch.randn((1, 3, sample_size, sample_size), device="cuda")
|
86
104
|
input = noise
|
87
105
|
|
88
106
|
for t in scheduler.timesteps:
|
@@ -117,8 +135,7 @@ You can look out for [issues](https://github.com/huggingface/diffusers/issues) y
|
|
117
135
|
- 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
|
118
136
|
- See [New scheduler](https://github.com/huggingface/diffusers/issues?q=is%3Aopen+is%3Aissue+label%3A%22New+scheduler%22)
|
119
137
|
|
120
|
-
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
|
121
|
-
just hang out ☕.
|
138
|
+
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 ☕.
|
122
139
|
|
123
140
|
|
124
141
|
## Popular Tasks & Pipelines
|
@@ -141,12 +158,12 @@ just hang out ☕.
|
|
141
158
|
</tr>
|
142
159
|
<tr>
|
143
160
|
<td>Text-to-Image</td>
|
144
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">
|
161
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/unclip">unCLIP</a></td>
|
145
162
|
<td><a href="https://huggingface.co/kakaobrain/karlo-v1-alpha"> kakaobrain/karlo-v1-alpha </a></td>
|
146
163
|
</tr>
|
147
164
|
<tr>
|
148
165
|
<td>Text-to-Image</td>
|
149
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/
|
166
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/deepfloyd_if">DeepFloyd IF</a></td>
|
150
167
|
<td><a href="https://huggingface.co/DeepFloyd/IF-I-XL-v1.0"> DeepFloyd/IF-I-XL-v1.0 </a></td>
|
151
168
|
</tr>
|
152
169
|
<tr>
|
@@ -156,12 +173,12 @@ just hang out ☕.
|
|
156
173
|
</tr>
|
157
174
|
<tr style="border-top: 2px solid black">
|
158
175
|
<td>Text-guided Image-to-Image</td>
|
159
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/
|
176
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/controlnet">ControlNet</a></td>
|
160
177
|
<td><a href="https://huggingface.co/lllyasviel/sd-controlnet-canny"> lllyasviel/sd-controlnet-canny </a></td>
|
161
178
|
</tr>
|
162
179
|
<tr>
|
163
180
|
<td>Text-guided Image-to-Image</td>
|
164
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">
|
181
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/pix2pix">InstructPix2Pix</a></td>
|
165
182
|
<td><a href="https://huggingface.co/timbrooks/instruct-pix2pix"> timbrooks/instruct-pix2pix </a></td>
|
166
183
|
</tr>
|
167
184
|
<tr>
|
@@ -171,7 +188,7 @@ just hang out ☕.
|
|
171
188
|
</tr>
|
172
189
|
<tr style="border-top: 2px solid black">
|
173
190
|
<td>Text-guided Image Inpainting</td>
|
174
|
-
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion
|
191
|
+
<td><a href="https://huggingface.co/docs/diffusers/api/pipelines/stable_diffusion/inpaint">Stable Diffusion Inpainting</a></td>
|
175
192
|
<td><a href="https://huggingface.co/runwayml/stable-diffusion-inpainting"> runwayml/stable-diffusion-inpainting </a></td>
|
176
193
|
</tr>
|
177
194
|
<tr style="border-top: 2px solid black">
|
@@ -202,9 +219,9 @@ just hang out ☕.
|
|
202
219
|
- https://github.com/deep-floyd/IF
|
203
220
|
- https://github.com/bentoml/BentoML
|
204
221
|
- https://github.com/bmaltais/kohya_ss
|
205
|
-
- +
|
222
|
+
- +7000 other amazing GitHub repositories 💪
|
206
223
|
|
207
|
-
Thank you for using us
|
224
|
+
Thank you for using us ❤️.
|
208
225
|
|
209
226
|
## Credits
|
210
227
|
|
@@ -0,0 +1,27 @@
|
|
1
|
+
[tool.ruff]
|
2
|
+
# Never enforce `E501` (line length violations).
|
3
|
+
ignore = ["C901", "E501", "E741", "F402", "F823"]
|
4
|
+
select = ["C", "E", "F", "I", "W"]
|
5
|
+
line-length = 119
|
6
|
+
|
7
|
+
# Ignore import violations in all `__init__.py` files.
|
8
|
+
[tool.ruff.per-file-ignores]
|
9
|
+
"__init__.py" = ["E402", "F401", "F403", "F811"]
|
10
|
+
"src/diffusers/utils/dummy_*.py" = ["F401"]
|
11
|
+
|
12
|
+
[tool.ruff.isort]
|
13
|
+
lines-after-imports = 2
|
14
|
+
known-first-party = ["diffusers"]
|
15
|
+
|
16
|
+
[tool.ruff.format]
|
17
|
+
# Like Black, use double quotes for strings.
|
18
|
+
quote-style = "double"
|
19
|
+
|
20
|
+
# Like Black, indent with spaces, rather than tabs.
|
21
|
+
indent-style = "space"
|
22
|
+
|
23
|
+
# Like Black, respect magic trailing commas.
|
24
|
+
skip-magic-trailing-comma = false
|
25
|
+
|
26
|
+
# Like Black, automatically detect the appropriate line ending.
|
27
|
+
line-ending = "auto"
|
@@ -15,12 +15,12 @@
|
|
15
15
|
"""
|
16
16
|
Simple check list from AllenNLP repo: https://github.com/allenai/allennlp/blob/main/setup.py
|
17
17
|
|
18
|
-
To create the package for
|
18
|
+
To create the package for PyPI.
|
19
19
|
|
20
20
|
1. Run `make pre-release` (or `make pre-patch` for a patch release) then run `make fix-copies` to fix the index of the
|
21
21
|
documentation.
|
22
22
|
|
23
|
-
If releasing on a special branch, copy the updated README.md on the main branch for
|
23
|
+
If releasing on a special branch, copy the updated README.md on the main branch for the commit you will make
|
24
24
|
for the post-release and run `make fix-copies` on the main branch as well.
|
25
25
|
|
26
26
|
2. Run Tests for Amazon Sagemaker. The documentation is located in `./tests/sagemaker/README.md`, otherwise @philschmid.
|
@@ -30,29 +30,29 @@ To create the package for pypi.
|
|
30
30
|
4. Checkout the release branch (v<RELEASE>-release, for example v4.19-release), and commit these changes with the
|
31
31
|
message: "Release: <RELEASE>" and push.
|
32
32
|
|
33
|
-
5. Wait for the tests on main to be completed and be green (otherwise revert and fix bugs)
|
33
|
+
5. Wait for the tests on main to be completed and be green (otherwise revert and fix bugs).
|
34
34
|
|
35
|
-
6. Add a tag in git to mark the release: "git tag v<RELEASE> -m 'Adds tag v<RELEASE> for
|
35
|
+
6. Add a tag in git to mark the release: "git tag v<RELEASE> -m 'Adds tag v<RELEASE> for PyPI'"
|
36
36
|
Push the tag to git: git push --tags origin v<RELEASE>-release
|
37
37
|
|
38
38
|
7. Build both the sources and the wheel. Do not change anything in setup.py between
|
39
39
|
creating the wheel and the source distribution (obviously).
|
40
40
|
|
41
|
-
For the wheel, run: "python setup.py bdist_wheel" in the top level directory
|
42
|
-
(
|
41
|
+
For the wheel, run: "python setup.py bdist_wheel" in the top level directory
|
42
|
+
(This will build a wheel for the Python version you use to build it).
|
43
43
|
|
44
44
|
For the sources, run: "python setup.py sdist"
|
45
45
|
You should now have a /dist directory with both .whl and .tar.gz source versions.
|
46
46
|
|
47
|
-
Long story cut short, you need to run both before you can upload the distribution to the
|
48
|
-
test
|
49
|
-
|
47
|
+
Long story cut short, you need to run both before you can upload the distribution to the
|
48
|
+
test PyPI and the actual PyPI servers:
|
49
|
+
|
50
50
|
python setup.py bdist_wheel && python setup.py sdist
|
51
51
|
|
52
|
-
8. Check that everything looks correct by uploading the package to the
|
52
|
+
8. Check that everything looks correct by uploading the package to the PyPI test server:
|
53
53
|
|
54
54
|
twine upload dist/* -r pypitest
|
55
|
-
(pypi
|
55
|
+
(pypi suggests using twine as other methods upload files via plaintext.)
|
56
56
|
You may have to specify the repository url, use the following command then:
|
57
57
|
twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
|
58
58
|
|
@@ -64,15 +64,15 @@ To create the package for pypi.
|
|
64
64
|
pip install -i https://testpypi.python.org/pypi diffusers
|
65
65
|
|
66
66
|
Check you can run the following commands:
|
67
|
-
python -c "
|
67
|
+
python -c "from diffusers import __version__; print(__version__)"
|
68
68
|
python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('fusing/unet-ldm-dummy-update'); pipe()"
|
69
69
|
python -c "from diffusers import DiffusionPipeline; pipe = DiffusionPipeline.from_pretrained('hf-internal-testing/tiny-stable-diffusion-pipe', safety_checker=None); pipe('ah suh du')"
|
70
70
|
python -c "from diffusers import *"
|
71
71
|
|
72
|
-
9. Upload the final version to actual
|
72
|
+
9. Upload the final version to the actual PyPI:
|
73
73
|
twine upload dist/* -r pypi
|
74
74
|
|
75
|
-
10. Prepare the release notes and publish them on
|
75
|
+
10. Prepare the release notes and publish them on GitHub once everything is looking hunky-dory.
|
76
76
|
|
77
77
|
11. Run `make post-release` (or, for a patch release, `make post-patch`). If you were on a branch for the release,
|
78
78
|
you need to go back to main before executing this.
|
@@ -80,6 +80,7 @@ To create the package for pypi.
|
|
80
80
|
|
81
81
|
import os
|
82
82
|
import re
|
83
|
+
import sys
|
83
84
|
from distutils.core import Command
|
84
85
|
|
85
86
|
from setuptools import find_packages, setup
|
@@ -92,12 +93,11 @@ _deps = [
|
|
92
93
|
"Pillow", # keep the PIL.Image.Resampling deprecation away
|
93
94
|
"accelerate>=0.11.0",
|
94
95
|
"compel==0.1.8",
|
95
|
-
"black~=23.1",
|
96
96
|
"datasets",
|
97
97
|
"filelock",
|
98
98
|
"flax>=0.4.1",
|
99
99
|
"hf-doc-builder>=0.3.0",
|
100
|
-
"huggingface-hub>=0.
|
100
|
+
"huggingface-hub>=0.19.4",
|
101
101
|
"requests-mock==1.10.0",
|
102
102
|
"importlib_metadata",
|
103
103
|
"invisible-watermark>=0.2.0",
|
@@ -112,15 +112,16 @@ _deps = [
|
|
112
112
|
"numpy",
|
113
113
|
"omegaconf",
|
114
114
|
"parameterized",
|
115
|
-
"peft
|
115
|
+
"peft>=0.6.0",
|
116
116
|
"protobuf>=3.20.3,<4",
|
117
117
|
"pytest",
|
118
118
|
"pytest-timeout",
|
119
119
|
"pytest-xdist",
|
120
120
|
"python>=3.8.0",
|
121
|
-
"ruff==0.
|
121
|
+
"ruff==0.1.5",
|
122
122
|
"safetensors>=0.3.1",
|
123
123
|
"sentencepiece>=0.1.91,!=0.1.92",
|
124
|
+
"GitPython<3.1.19",
|
124
125
|
"scipy",
|
125
126
|
"onnx",
|
126
127
|
"regex!=2019.12.17",
|
@@ -144,7 +145,7 @@ deps = {b: a for a, b in (re.findall(r"^(([^!=<>~]+)(?:[!=<>~].*)?$)", x)[0] for
|
|
144
145
|
# anywhere. If you need to quickly access the data from this table in a shell, you can do so easily with:
|
145
146
|
#
|
146
147
|
# python -c 'import sys; from diffusers.dependency_versions_table import deps; \
|
147
|
-
# print(" ".join([
|
148
|
+
# print(" ".join([deps[x] for x in sys.argv[1:]]))' tokenizers datasets
|
148
149
|
#
|
149
150
|
# Just pass the desired package names to that script as it's shown with 2 packages above.
|
150
151
|
#
|
@@ -153,7 +154,7 @@ deps = {b: a for a, b in (re.findall(r"^(([^!=<>~]+)(?:[!=<>~].*)?$)", x)[0] for
|
|
153
154
|
# You can then feed this for example to `pip`:
|
154
155
|
#
|
155
156
|
# pip install -U $(python -c 'import sys; from diffusers.dependency_versions_table import deps; \
|
156
|
-
# print(" ".join([
|
157
|
+
# print(" ".join([deps[x] for x in sys.argv[1:]]))' tokenizers datasets)
|
157
158
|
#
|
158
159
|
|
159
160
|
|
@@ -170,7 +171,11 @@ class DepsTableUpdateCommand(Command):
|
|
170
171
|
description = "build runtime dependency table"
|
171
172
|
user_options = [
|
172
173
|
# format: (long option, short option, description).
|
173
|
-
(
|
174
|
+
(
|
175
|
+
"dep-table-update",
|
176
|
+
None,
|
177
|
+
"updates src/diffusers/dependency_versions_table.py",
|
178
|
+
),
|
174
179
|
]
|
175
180
|
|
176
181
|
def initialize_options(self):
|
@@ -184,7 +189,7 @@ class DepsTableUpdateCommand(Command):
|
|
184
189
|
content = [
|
185
190
|
"# THIS FILE HAS BEEN AUTOGENERATED. To update:",
|
186
191
|
"# 1. modify the `_deps` dict in setup.py",
|
187
|
-
"# 2. run `make deps_table_update
|
192
|
+
"# 2. run `make deps_table_update`",
|
188
193
|
"deps = {",
|
189
194
|
entries,
|
190
195
|
"}",
|
@@ -197,14 +202,12 @@ class DepsTableUpdateCommand(Command):
|
|
197
202
|
|
198
203
|
|
199
204
|
extras = {}
|
200
|
-
|
201
|
-
|
202
|
-
extras = {}
|
203
|
-
extras["quality"] = deps_list("urllib3", "black", "isort", "ruff", "hf-doc-builder")
|
205
|
+
extras["quality"] = deps_list("urllib3", "isort", "ruff", "hf-doc-builder")
|
204
206
|
extras["docs"] = deps_list("hf-doc-builder")
|
205
|
-
extras["training"] = deps_list("accelerate", "datasets", "protobuf", "tensorboard", "Jinja2")
|
207
|
+
extras["training"] = deps_list("accelerate", "datasets", "protobuf", "tensorboard", "Jinja2", "peft")
|
206
208
|
extras["test"] = deps_list(
|
207
209
|
"compel",
|
210
|
+
"GitPython",
|
208
211
|
"datasets",
|
209
212
|
"Jinja2",
|
210
213
|
"invisible-watermark",
|
@@ -244,15 +247,17 @@ install_requires = [
|
|
244
247
|
deps["Pillow"],
|
245
248
|
]
|
246
249
|
|
250
|
+
version_range_max = max(sys.version_info[1], 10) + 1
|
251
|
+
|
247
252
|
setup(
|
248
253
|
name="diffusers",
|
249
|
-
version="0.
|
254
|
+
version="0.25.0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
|
250
255
|
description="State-of-the-art diffusion in PyTorch and JAX.",
|
251
256
|
long_description=open("README.md", "r", encoding="utf-8").read(),
|
252
257
|
long_description_content_type="text/markdown",
|
253
258
|
keywords="deep learning diffusion jax pytorch stable diffusion audioldm",
|
254
|
-
license="Apache",
|
255
|
-
author="The
|
259
|
+
license="Apache 2.0 License",
|
260
|
+
author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/diffusers/graphs/contributors)",
|
256
261
|
author_email="patrick@huggingface.co",
|
257
262
|
url="https://github.com/huggingface/diffusers",
|
258
263
|
package_dir={"": "src"},
|
@@ -270,30 +275,9 @@ setup(
|
|
270
275
|
"Intended Audience :: Science/Research",
|
271
276
|
"License :: OSI Approved :: Apache Software License",
|
272
277
|
"Operating System :: OS Independent",
|
273
|
-
"Programming Language :: Python :: 3",
|
274
|
-
"Programming Language :: Python :: 3.8",
|
275
|
-
"Programming Language :: Python :: 3.9",
|
276
278
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
277
|
-
|
279
|
+
"Programming Language :: Python :: 3",
|
280
|
+
]
|
281
|
+
+ [f"Programming Language :: Python :: 3.{i}" for i in range(8, version_range_max)],
|
278
282
|
cmdclass={"deps_table_update": DepsTableUpdateCommand},
|
279
283
|
)
|
280
|
-
|
281
|
-
# Release checklist
|
282
|
-
# 1. Change the version in __init__.py and setup.py.
|
283
|
-
# 2. Commit these changes with the message: "Release: Release"
|
284
|
-
# 3. Add a tag in git to mark the release: "git tag RELEASE -m 'Adds tag RELEASE for pypi' "
|
285
|
-
# Push the tag to git: git push --tags origin main
|
286
|
-
# 4. Run the following commands in the top-level directory:
|
287
|
-
# python setup.py bdist_wheel
|
288
|
-
# python setup.py sdist
|
289
|
-
# 5. Upload the package to the pypi test server first:
|
290
|
-
# twine upload dist/* -r pypitest
|
291
|
-
# twine upload dist/* -r pypitest --repository-url=https://test.pypi.org/legacy/
|
292
|
-
# 6. Check that you can install it in a virtualenv by running:
|
293
|
-
# pip install -i https://testpypi.python.org/pypi diffusers
|
294
|
-
# diffusers env
|
295
|
-
# diffusers test
|
296
|
-
# 7. Upload the final version to actual pypi:
|
297
|
-
# twine upload dist/* -r pypi
|
298
|
-
# 8. Add release notes to the tag in github once everything is looking hunky-dory.
|
299
|
-
# 9. Update the version in __init__.py, setup.py to the new version "-dev" and push to master
|