diffusers 0.23.1__py3-none-any.whl → 0.25.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- diffusers/__init__.py +26 -2
- diffusers/commands/fp16_safetensors.py +10 -11
- diffusers/configuration_utils.py +13 -8
- diffusers/dependency_versions_check.py +0 -1
- diffusers/dependency_versions_table.py +5 -5
- diffusers/experimental/rl/value_guided_sampling.py +1 -1
- diffusers/image_processor.py +463 -51
- diffusers/loaders/__init__.py +82 -0
- diffusers/loaders/ip_adapter.py +159 -0
- diffusers/loaders/lora.py +1553 -0
- diffusers/loaders/lora_conversion_utils.py +284 -0
- diffusers/loaders/single_file.py +637 -0
- diffusers/loaders/textual_inversion.py +455 -0
- diffusers/loaders/unet.py +828 -0
- diffusers/loaders/utils.py +59 -0
- diffusers/models/__init__.py +26 -9
- diffusers/models/activations.py +9 -6
- diffusers/models/attention.py +301 -29
- diffusers/models/attention_flax.py +9 -1
- diffusers/models/attention_processor.py +378 -6
- diffusers/models/autoencoders/__init__.py +5 -0
- diffusers/models/{autoencoder_asym_kl.py → autoencoders/autoencoder_asym_kl.py} +17 -12
- diffusers/models/{autoencoder_kl.py → autoencoders/autoencoder_kl.py} +47 -23
- diffusers/models/autoencoders/autoencoder_kl_temporal_decoder.py +402 -0
- diffusers/models/{autoencoder_tiny.py → autoencoders/autoencoder_tiny.py} +24 -28
- diffusers/models/{consistency_decoder_vae.py → autoencoders/consistency_decoder_vae.py} +51 -44
- diffusers/models/{vae.py → autoencoders/vae.py} +71 -17
- diffusers/models/controlnet.py +59 -39
- diffusers/models/controlnet_flax.py +19 -18
- diffusers/models/downsampling.py +338 -0
- diffusers/models/embeddings.py +112 -29
- diffusers/models/embeddings_flax.py +2 -0
- diffusers/models/lora.py +131 -1
- diffusers/models/modeling_flax_utils.py +14 -8
- diffusers/models/modeling_outputs.py +17 -0
- diffusers/models/modeling_utils.py +37 -29
- diffusers/models/normalization.py +110 -4
- diffusers/models/resnet.py +299 -652
- diffusers/models/transformer_2d.py +22 -5
- diffusers/models/transformer_temporal.py +183 -1
- diffusers/models/unet_2d_blocks_flax.py +5 -0
- diffusers/models/unet_2d_condition.py +46 -0
- diffusers/models/unet_2d_condition_flax.py +13 -13
- diffusers/models/unet_3d_blocks.py +957 -173
- diffusers/models/unet_3d_condition.py +16 -8
- diffusers/models/unet_kandinsky3.py +535 -0
- diffusers/models/unet_motion_model.py +48 -33
- diffusers/models/unet_spatio_temporal_condition.py +489 -0
- diffusers/models/upsampling.py +454 -0
- diffusers/models/uvit_2d.py +471 -0
- diffusers/models/vae_flax.py +7 -0
- diffusers/models/vq_model.py +12 -3
- diffusers/optimization.py +16 -9
- diffusers/pipelines/__init__.py +137 -76
- diffusers/pipelines/amused/__init__.py +62 -0
- diffusers/pipelines/amused/pipeline_amused.py +328 -0
- diffusers/pipelines/amused/pipeline_amused_img2img.py +347 -0
- diffusers/pipelines/amused/pipeline_amused_inpaint.py +378 -0
- diffusers/pipelines/animatediff/pipeline_animatediff.py +66 -8
- diffusers/pipelines/audioldm/pipeline_audioldm.py +1 -0
- diffusers/pipelines/auto_pipeline.py +23 -13
- diffusers/pipelines/consistency_models/pipeline_consistency_models.py +1 -0
- diffusers/pipelines/controlnet/pipeline_controlnet.py +238 -35
- diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py +148 -37
- diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py +155 -41
- diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py +123 -43
- diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py +216 -39
- diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py +106 -34
- diffusers/pipelines/dance_diffusion/pipeline_dance_diffusion.py +1 -0
- diffusers/pipelines/ddim/pipeline_ddim.py +1 -0
- diffusers/pipelines/ddpm/pipeline_ddpm.py +1 -0
- diffusers/pipelines/deepfloyd_if/pipeline_if.py +13 -1
- diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py +13 -1
- diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py +13 -1
- diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py +13 -1
- diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py +13 -1
- diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py +13 -1
- diffusers/pipelines/deprecated/__init__.py +153 -0
- diffusers/pipelines/{alt_diffusion → deprecated/alt_diffusion}/__init__.py +3 -3
- diffusers/pipelines/{alt_diffusion → deprecated/alt_diffusion}/pipeline_alt_diffusion.py +177 -34
- diffusers/pipelines/{alt_diffusion → deprecated/alt_diffusion}/pipeline_alt_diffusion_img2img.py +182 -37
- diffusers/pipelines/{alt_diffusion → deprecated/alt_diffusion}/pipeline_output.py +1 -1
- diffusers/pipelines/{audio_diffusion → deprecated/audio_diffusion}/__init__.py +1 -1
- diffusers/pipelines/{audio_diffusion → deprecated/audio_diffusion}/mel.py +2 -2
- diffusers/pipelines/{audio_diffusion → deprecated/audio_diffusion}/pipeline_audio_diffusion.py +4 -4
- diffusers/pipelines/{latent_diffusion_uncond → deprecated/latent_diffusion_uncond}/__init__.py +1 -1
- diffusers/pipelines/{latent_diffusion_uncond → deprecated/latent_diffusion_uncond}/pipeline_latent_diffusion_uncond.py +4 -4
- diffusers/pipelines/{pndm → deprecated/pndm}/__init__.py +1 -1
- diffusers/pipelines/{pndm → deprecated/pndm}/pipeline_pndm.py +4 -4
- diffusers/pipelines/{repaint → deprecated/repaint}/__init__.py +1 -1
- diffusers/pipelines/{repaint → deprecated/repaint}/pipeline_repaint.py +5 -5
- diffusers/pipelines/{score_sde_ve → deprecated/score_sde_ve}/__init__.py +1 -1
- diffusers/pipelines/{score_sde_ve → deprecated/score_sde_ve}/pipeline_score_sde_ve.py +5 -4
- diffusers/pipelines/{spectrogram_diffusion → deprecated/spectrogram_diffusion}/__init__.py +6 -6
- diffusers/pipelines/{spectrogram_diffusion/continous_encoder.py → deprecated/spectrogram_diffusion/continuous_encoder.py} +2 -2
- diffusers/pipelines/{spectrogram_diffusion → deprecated/spectrogram_diffusion}/midi_utils.py +1 -1
- diffusers/pipelines/{spectrogram_diffusion → deprecated/spectrogram_diffusion}/notes_encoder.py +2 -2
- diffusers/pipelines/{spectrogram_diffusion → deprecated/spectrogram_diffusion}/pipeline_spectrogram_diffusion.py +8 -7
- diffusers/pipelines/deprecated/stable_diffusion_variants/__init__.py +55 -0
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_cycle_diffusion.py +34 -13
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_onnx_stable_diffusion_inpaint_legacy.py +7 -6
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_inpaint_legacy.py +12 -11
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_model_editing.py +17 -11
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_paradigms.py +11 -10
- diffusers/pipelines/{stable_diffusion → deprecated/stable_diffusion_variants}/pipeline_stable_diffusion_pix2pix_zero.py +14 -13
- diffusers/pipelines/{stochastic_karras_ve → deprecated/stochastic_karras_ve}/__init__.py +1 -1
- diffusers/pipelines/{stochastic_karras_ve → deprecated/stochastic_karras_ve}/pipeline_stochastic_karras_ve.py +4 -4
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/__init__.py +3 -3
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/modeling_text_unet.py +83 -51
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/pipeline_versatile_diffusion.py +4 -4
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/pipeline_versatile_diffusion_dual_guided.py +7 -6
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/pipeline_versatile_diffusion_image_variation.py +7 -6
- diffusers/pipelines/{versatile_diffusion → deprecated/versatile_diffusion}/pipeline_versatile_diffusion_text_to_image.py +7 -6
- diffusers/pipelines/{vq_diffusion → deprecated/vq_diffusion}/__init__.py +3 -3
- diffusers/pipelines/{vq_diffusion → deprecated/vq_diffusion}/pipeline_vq_diffusion.py +5 -5
- diffusers/pipelines/dit/pipeline_dit.py +1 -0
- diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2.py +1 -1
- diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py +3 -3
- diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_img2img.py +1 -1
- diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_inpainting.py +1 -1
- diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py +1 -1
- diffusers/pipelines/kandinsky3/__init__.py +49 -0
- diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py +98 -0
- diffusers/pipelines/kandinsky3/pipeline_kandinsky3.py +589 -0
- diffusers/pipelines/kandinsky3/pipeline_kandinsky3_img2img.py +654 -0
- diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_img2img.py +111 -11
- diffusers/pipelines/latent_consistency_models/pipeline_latent_consistency_text2img.py +102 -9
- diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py +1 -0
- diffusers/pipelines/musicldm/pipeline_musicldm.py +1 -1
- diffusers/pipelines/onnx_utils.py +8 -5
- diffusers/pipelines/paint_by_example/pipeline_paint_by_example.py +7 -2
- diffusers/pipelines/pipeline_flax_utils.py +11 -8
- diffusers/pipelines/pipeline_utils.py +63 -42
- diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py +247 -38
- diffusers/pipelines/shap_e/pipeline_shap_e_img2img.py +3 -3
- diffusers/pipelines/stable_diffusion/__init__.py +37 -65
- diffusers/pipelines/stable_diffusion/convert_from_ckpt.py +75 -78
- diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py +2 -2
- diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py +2 -4
- diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py +1 -0
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py +174 -11
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py +8 -3
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_image_variation.py +1 -0
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py +178 -11
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py +224 -13
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_instruct_pix2pix.py +74 -20
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_latent_upscale.py +4 -0
- diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py +7 -0
- diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py +5 -0
- diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py +5 -0
- diffusers/pipelines/stable_diffusion_attend_and_excite/__init__.py +48 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_attend_and_excite}/pipeline_stable_diffusion_attend_and_excite.py +6 -2
- diffusers/pipelines/stable_diffusion_diffedit/__init__.py +48 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_diffedit}/pipeline_stable_diffusion_diffedit.py +3 -3
- diffusers/pipelines/stable_diffusion_gligen/__init__.py +50 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_gligen}/pipeline_stable_diffusion_gligen.py +3 -2
- diffusers/pipelines/{stable_diffusion → stable_diffusion_gligen}/pipeline_stable_diffusion_gligen_text_image.py +4 -3
- diffusers/pipelines/stable_diffusion_k_diffusion/__init__.py +60 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_k_diffusion}/pipeline_stable_diffusion_k_diffusion.py +7 -1
- diffusers/pipelines/stable_diffusion_ldm3d/__init__.py +48 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_ldm3d}/pipeline_stable_diffusion_ldm3d.py +51 -7
- diffusers/pipelines/stable_diffusion_panorama/__init__.py +48 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_panorama}/pipeline_stable_diffusion_panorama.py +57 -8
- diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py +58 -6
- diffusers/pipelines/stable_diffusion_sag/__init__.py +48 -0
- diffusers/pipelines/{stable_diffusion → stable_diffusion_sag}/pipeline_stable_diffusion_sag.py +68 -10
- diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py +194 -17
- diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py +205 -16
- diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py +206 -17
- diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py +23 -17
- diffusers/pipelines/stable_video_diffusion/__init__.py +58 -0
- diffusers/pipelines/stable_video_diffusion/pipeline_stable_video_diffusion.py +652 -0
- diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_adapter.py +108 -12
- diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py +115 -14
- diffusers/pipelines/text_to_video_synthesis/__init__.py +2 -0
- diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py +6 -0
- diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth_img2img.py +23 -3
- diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py +334 -10
- diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero_sdxl.py +1331 -0
- diffusers/pipelines/unclip/pipeline_unclip.py +2 -1
- diffusers/pipelines/unclip/pipeline_unclip_image_variation.py +1 -0
- diffusers/pipelines/wuerstchen/modeling_paella_vq_model.py +1 -1
- diffusers/pipelines/wuerstchen/modeling_wuerstchen_common.py +14 -4
- diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py +9 -5
- diffusers/pipelines/wuerstchen/pipeline_wuerstchen.py +1 -1
- diffusers/pipelines/wuerstchen/pipeline_wuerstchen_combined.py +2 -2
- diffusers/pipelines/wuerstchen/pipeline_wuerstchen_prior.py +5 -1
- diffusers/schedulers/__init__.py +4 -4
- diffusers/schedulers/deprecated/__init__.py +50 -0
- diffusers/schedulers/{scheduling_karras_ve.py → deprecated/scheduling_karras_ve.py} +4 -4
- diffusers/schedulers/{scheduling_sde_vp.py → deprecated/scheduling_sde_vp.py} +4 -6
- diffusers/schedulers/scheduling_amused.py +162 -0
- diffusers/schedulers/scheduling_consistency_models.py +2 -0
- diffusers/schedulers/scheduling_ddim.py +1 -3
- diffusers/schedulers/scheduling_ddim_inverse.py +2 -7
- diffusers/schedulers/scheduling_ddim_parallel.py +1 -3
- diffusers/schedulers/scheduling_ddpm.py +47 -3
- diffusers/schedulers/scheduling_ddpm_parallel.py +47 -3
- diffusers/schedulers/scheduling_deis_multistep.py +28 -6
- diffusers/schedulers/scheduling_dpmsolver_multistep.py +28 -6
- diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py +28 -6
- diffusers/schedulers/scheduling_dpmsolver_sde.py +3 -3
- diffusers/schedulers/scheduling_dpmsolver_singlestep.py +28 -6
- diffusers/schedulers/scheduling_euler_ancestral_discrete.py +59 -3
- diffusers/schedulers/scheduling_euler_discrete.py +102 -16
- diffusers/schedulers/scheduling_heun_discrete.py +17 -5
- diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py +17 -5
- diffusers/schedulers/scheduling_k_dpm_2_discrete.py +17 -5
- diffusers/schedulers/scheduling_lcm.py +123 -29
- diffusers/schedulers/scheduling_lms_discrete.py +3 -3
- diffusers/schedulers/scheduling_pndm.py +1 -3
- diffusers/schedulers/scheduling_repaint.py +1 -3
- diffusers/schedulers/scheduling_unipc_multistep.py +28 -6
- diffusers/schedulers/scheduling_utils.py +3 -1
- diffusers/schedulers/scheduling_utils_flax.py +3 -1
- diffusers/training_utils.py +1 -1
- diffusers/utils/__init__.py +1 -2
- diffusers/utils/constants.py +10 -12
- diffusers/utils/dummy_pt_objects.py +75 -0
- diffusers/utils/dummy_torch_and_transformers_objects.py +105 -0
- diffusers/utils/dynamic_modules_utils.py +18 -22
- diffusers/utils/export_utils.py +8 -3
- diffusers/utils/hub_utils.py +24 -36
- diffusers/utils/logging.py +11 -11
- diffusers/utils/outputs.py +5 -5
- diffusers/utils/peft_utils.py +88 -44
- diffusers/utils/state_dict_utils.py +8 -0
- diffusers/utils/testing_utils.py +199 -1
- diffusers/utils/torch_utils.py +4 -4
- {diffusers-0.23.1.dist-info → diffusers-0.25.0.dist-info}/METADATA +86 -69
- diffusers-0.25.0.dist-info/RECORD +360 -0
- {diffusers-0.23.1.dist-info → diffusers-0.25.0.dist-info}/WHEEL +1 -1
- {diffusers-0.23.1.dist-info → diffusers-0.25.0.dist-info}/entry_points.txt +0 -1
- diffusers/loaders.py +0 -3336
- diffusers-0.23.1.dist-info/RECORD +0 -323
- /diffusers/pipelines/{alt_diffusion → deprecated/alt_diffusion}/modeling_roberta_series.py +0 -0
- {diffusers-0.23.1.dist-info → diffusers-0.25.0.dist-info}/LICENSE +0 -0
- {diffusers-0.23.1.dist-info → diffusers-0.25.0.dist-info}/top_level.txt +0 -0
@@ -34,18 +34,14 @@ else:
|
|
34
34
|
_import_structure["pipeline_stable_diffusion"] = ["StableDiffusionPipeline"]
|
35
35
|
_import_structure["pipeline_stable_diffusion_attend_and_excite"] = ["StableDiffusionAttendAndExcitePipeline"]
|
36
36
|
_import_structure["pipeline_stable_diffusion_gligen"] = ["StableDiffusionGLIGENPipeline"]
|
37
|
-
_import_structure["pipeline_stable_diffusion_gligen"] = ["StableDiffusionGLIGENPipeline"]
|
38
37
|
_import_structure["pipeline_stable_diffusion_gligen_text_image"] = ["StableDiffusionGLIGENTextImagePipeline"]
|
39
38
|
_import_structure["pipeline_stable_diffusion_img2img"] = ["StableDiffusionImg2ImgPipeline"]
|
40
39
|
_import_structure["pipeline_stable_diffusion_inpaint"] = ["StableDiffusionInpaintPipeline"]
|
41
40
|
_import_structure["pipeline_stable_diffusion_inpaint_legacy"] = ["StableDiffusionInpaintPipelineLegacy"]
|
42
41
|
_import_structure["pipeline_stable_diffusion_instruct_pix2pix"] = ["StableDiffusionInstructPix2PixPipeline"]
|
43
42
|
_import_structure["pipeline_stable_diffusion_latent_upscale"] = ["StableDiffusionLatentUpscalePipeline"]
|
44
|
-
_import_structure["pipeline_stable_diffusion_ldm3d"] = ["StableDiffusionLDM3DPipeline"]
|
45
43
|
_import_structure["pipeline_stable_diffusion_model_editing"] = ["StableDiffusionModelEditingPipeline"]
|
46
|
-
_import_structure["pipeline_stable_diffusion_panorama"] = ["StableDiffusionPanoramaPipeline"]
|
47
44
|
_import_structure["pipeline_stable_diffusion_paradigms"] = ["StableDiffusionParadigmsPipeline"]
|
48
|
-
_import_structure["pipeline_stable_diffusion_sag"] = ["StableDiffusionSAGPipeline"]
|
49
45
|
_import_structure["pipeline_stable_diffusion_upscale"] = ["StableDiffusionUpscalePipeline"]
|
50
46
|
_import_structure["pipeline_stable_unclip"] = ["StableUnCLIPPipeline"]
|
51
47
|
_import_structure["pipeline_stable_unclip_img2img"] = ["StableUnCLIPImg2ImgPipeline"]
|
@@ -55,7 +51,9 @@ try:
|
|
55
51
|
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0")):
|
56
52
|
raise OptionalDependencyNotAvailable()
|
57
53
|
except OptionalDependencyNotAvailable:
|
58
|
-
from ...utils.dummy_torch_and_transformers_objects import
|
54
|
+
from ...utils.dummy_torch_and_transformers_objects import (
|
55
|
+
StableDiffusionImageVariationPipeline,
|
56
|
+
)
|
59
57
|
|
60
58
|
_dummy_objects.update({"StableDiffusionImageVariationPipeline": StableDiffusionImageVariationPipeline})
|
61
59
|
else:
|
@@ -66,35 +64,16 @@ try:
|
|
66
64
|
except OptionalDependencyNotAvailable:
|
67
65
|
from ...utils.dummy_torch_and_transformers_objects import (
|
68
66
|
StableDiffusionDepth2ImgPipeline,
|
69
|
-
StableDiffusionDiffEditPipeline,
|
70
|
-
StableDiffusionPix2PixZeroPipeline,
|
71
67
|
)
|
72
68
|
|
73
69
|
_dummy_objects.update(
|
74
70
|
{
|
75
71
|
"StableDiffusionDepth2ImgPipeline": StableDiffusionDepth2ImgPipeline,
|
76
|
-
"StableDiffusionDiffEditPipeline": StableDiffusionDiffEditPipeline,
|
77
|
-
"StableDiffusionPix2PixZeroPipeline": StableDiffusionPix2PixZeroPipeline,
|
78
72
|
}
|
79
73
|
)
|
80
74
|
else:
|
81
75
|
_import_structure["pipeline_stable_diffusion_depth2img"] = ["StableDiffusionDepth2ImgPipeline"]
|
82
|
-
_import_structure["pipeline_stable_diffusion_diffedit"] = ["StableDiffusionDiffEditPipeline"]
|
83
|
-
_import_structure["pipeline_stable_diffusion_pix2pix_zero"] = ["StableDiffusionPix2PixZeroPipeline"]
|
84
|
-
try:
|
85
|
-
if not (
|
86
|
-
is_torch_available()
|
87
|
-
and is_transformers_available()
|
88
|
-
and is_k_diffusion_available()
|
89
|
-
and is_k_diffusion_version(">=", "0.0.12")
|
90
|
-
):
|
91
|
-
raise OptionalDependencyNotAvailable()
|
92
|
-
except OptionalDependencyNotAvailable:
|
93
|
-
from ...utils import dummy_torch_and_transformers_and_k_diffusion_objects # noqa F403
|
94
76
|
|
95
|
-
_dummy_objects.update(get_objects_from_module(dummy_torch_and_transformers_and_k_diffusion_objects))
|
96
|
-
else:
|
97
|
-
_import_structure["pipeline_stable_diffusion_k_diffusion"] = ["StableDiffusionKDiffusionPipeline"]
|
98
77
|
try:
|
99
78
|
if not (is_transformers_available() and is_onnx_available()):
|
100
79
|
raise OptionalDependencyNotAvailable()
|
@@ -131,25 +110,19 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
|
|
131
110
|
|
132
111
|
else:
|
133
112
|
from .clip_image_project_model import CLIPImageProjection
|
134
|
-
from .pipeline_cycle_diffusion import CycleDiffusionPipeline
|
135
113
|
from .pipeline_stable_diffusion import (
|
136
114
|
StableDiffusionPipeline,
|
137
115
|
StableDiffusionPipelineOutput,
|
138
116
|
StableDiffusionSafetyChecker,
|
139
117
|
)
|
140
|
-
from .pipeline_stable_diffusion_attend_and_excite import StableDiffusionAttendAndExcitePipeline
|
141
|
-
from .pipeline_stable_diffusion_gligen import StableDiffusionGLIGENPipeline
|
142
|
-
from .pipeline_stable_diffusion_gligen_text_image import StableDiffusionGLIGENTextImagePipeline
|
143
118
|
from .pipeline_stable_diffusion_img2img import StableDiffusionImg2ImgPipeline
|
144
119
|
from .pipeline_stable_diffusion_inpaint import StableDiffusionInpaintPipeline
|
145
|
-
from .
|
146
|
-
|
147
|
-
|
148
|
-
from .
|
149
|
-
|
150
|
-
|
151
|
-
from .pipeline_stable_diffusion_paradigms import StableDiffusionParadigmsPipeline
|
152
|
-
from .pipeline_stable_diffusion_sag import StableDiffusionSAGPipeline
|
120
|
+
from .pipeline_stable_diffusion_instruct_pix2pix import (
|
121
|
+
StableDiffusionInstructPix2PixPipeline,
|
122
|
+
)
|
123
|
+
from .pipeline_stable_diffusion_latent_upscale import (
|
124
|
+
StableDiffusionLatentUpscalePipeline,
|
125
|
+
)
|
153
126
|
from .pipeline_stable_diffusion_upscale import StableDiffusionUpscalePipeline
|
154
127
|
from .pipeline_stable_unclip import StableUnCLIPPipeline
|
155
128
|
from .pipeline_stable_unclip_img2img import StableUnCLIPImg2ImgPipeline
|
@@ -159,37 +132,24 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
|
|
159
132
|
try:
|
160
133
|
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.25.0")):
|
161
134
|
raise OptionalDependencyNotAvailable()
|
162
|
-
except OptionalDependencyNotAvailable:
|
163
|
-
from ...utils.dummy_torch_and_transformers_objects import StableDiffusionImageVariationPipeline
|
164
|
-
else:
|
165
|
-
from .pipeline_stable_diffusion_image_variation import StableDiffusionImageVariationPipeline
|
166
|
-
|
167
|
-
try:
|
168
|
-
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.26.0")):
|
169
|
-
raise OptionalDependencyNotAvailable()
|
170
135
|
except OptionalDependencyNotAvailable:
|
171
136
|
from ...utils.dummy_torch_and_transformers_objects import (
|
172
|
-
|
173
|
-
StableDiffusionDiffEditPipeline,
|
174
|
-
StableDiffusionPix2PixZeroPipeline,
|
137
|
+
StableDiffusionImageVariationPipeline,
|
175
138
|
)
|
176
139
|
else:
|
177
|
-
from .
|
178
|
-
|
179
|
-
|
140
|
+
from .pipeline_stable_diffusion_image_variation import (
|
141
|
+
StableDiffusionImageVariationPipeline,
|
142
|
+
)
|
180
143
|
|
181
144
|
try:
|
182
|
-
if not (
|
183
|
-
is_torch_available()
|
184
|
-
and is_transformers_available()
|
185
|
-
and is_k_diffusion_available()
|
186
|
-
and is_k_diffusion_version(">=", "0.0.12")
|
187
|
-
):
|
145
|
+
if not (is_transformers_available() and is_torch_available() and is_transformers_version(">=", "4.26.0")):
|
188
146
|
raise OptionalDependencyNotAvailable()
|
189
147
|
except OptionalDependencyNotAvailable:
|
190
|
-
from ...utils.
|
148
|
+
from ...utils.dummy_torch_and_transformers_objects import StableDiffusionDepth2ImgPipeline
|
191
149
|
else:
|
192
|
-
from .
|
150
|
+
from .pipeline_stable_diffusion_depth2img import (
|
151
|
+
StableDiffusionDepth2ImgPipeline,
|
152
|
+
)
|
193
153
|
|
194
154
|
try:
|
195
155
|
if not (is_transformers_available() and is_onnx_available()):
|
@@ -197,11 +157,19 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
|
|
197
157
|
except OptionalDependencyNotAvailable:
|
198
158
|
from ...utils.dummy_onnx_objects import *
|
199
159
|
else:
|
200
|
-
from .pipeline_onnx_stable_diffusion import
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
from .
|
160
|
+
from .pipeline_onnx_stable_diffusion import (
|
161
|
+
OnnxStableDiffusionPipeline,
|
162
|
+
StableDiffusionOnnxPipeline,
|
163
|
+
)
|
164
|
+
from .pipeline_onnx_stable_diffusion_img2img import (
|
165
|
+
OnnxStableDiffusionImg2ImgPipeline,
|
166
|
+
)
|
167
|
+
from .pipeline_onnx_stable_diffusion_inpaint import (
|
168
|
+
OnnxStableDiffusionInpaintPipeline,
|
169
|
+
)
|
170
|
+
from .pipeline_onnx_stable_diffusion_upscale import (
|
171
|
+
OnnxStableDiffusionUpscalePipeline,
|
172
|
+
)
|
205
173
|
|
206
174
|
try:
|
207
175
|
if not (is_transformers_available() and is_flax_available()):
|
@@ -210,8 +178,12 @@ if TYPE_CHECKING or DIFFUSERS_SLOW_IMPORT:
|
|
210
178
|
from ...utils.dummy_flax_objects import *
|
211
179
|
else:
|
212
180
|
from .pipeline_flax_stable_diffusion import FlaxStableDiffusionPipeline
|
213
|
-
from .pipeline_flax_stable_diffusion_img2img import
|
214
|
-
|
181
|
+
from .pipeline_flax_stable_diffusion_img2img import (
|
182
|
+
FlaxStableDiffusionImg2ImgPipeline,
|
183
|
+
)
|
184
|
+
from .pipeline_flax_stable_diffusion_inpaint import (
|
185
|
+
FlaxStableDiffusionInpaintPipeline,
|
186
|
+
)
|
215
187
|
from .pipeline_output import FlaxStableDiffusionPipelineOutput
|
216
188
|
from .safety_checker_flax import FlaxStableDiffusionSafetyChecker
|
217
189
|
|
@@ -447,7 +447,8 @@ def convert_ldm_unet_checkpoint(
|
|
447
447
|
|
448
448
|
# Relevant to StableDiffusionUpscalePipeline
|
449
449
|
if "num_class_embeds" in config:
|
450
|
-
|
450
|
+
if (config["num_class_embeds"] is not None) and ("label_emb.weight" in unet_state_dict):
|
451
|
+
new_checkpoint["class_embedding.weight"] = unet_state_dict["label_emb.weight"]
|
451
452
|
|
452
453
|
new_checkpoint["conv_in.weight"] = unet_state_dict["input_blocks.0.0.weight"]
|
453
454
|
new_checkpoint["conv_in.bias"] = unet_state_dict["input_blocks.0.0.bias"]
|
@@ -1152,7 +1153,9 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1152
1153
|
vae_path=None,
|
1153
1154
|
vae=None,
|
1154
1155
|
text_encoder=None,
|
1156
|
+
text_encoder_2=None,
|
1155
1157
|
tokenizer=None,
|
1158
|
+
tokenizer_2=None,
|
1156
1159
|
config_files=None,
|
1157
1160
|
) -> DiffusionPipeline:
|
1158
1161
|
"""
|
@@ -1231,14 +1234,14 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1231
1234
|
StableDiffusionInpaintPipeline,
|
1232
1235
|
StableDiffusionPipeline,
|
1233
1236
|
StableDiffusionUpscalePipeline,
|
1237
|
+
StableDiffusionXLControlNetInpaintPipeline,
|
1234
1238
|
StableDiffusionXLImg2ImgPipeline,
|
1239
|
+
StableDiffusionXLInpaintPipeline,
|
1240
|
+
StableDiffusionXLPipeline,
|
1235
1241
|
StableUnCLIPImg2ImgPipeline,
|
1236
1242
|
StableUnCLIPPipeline,
|
1237
1243
|
)
|
1238
1244
|
|
1239
|
-
if pipeline_class is None:
|
1240
|
-
pipeline_class = StableDiffusionPipeline if not controlnet else StableDiffusionControlNetPipeline
|
1241
|
-
|
1242
1245
|
if prediction_type == "v-prediction":
|
1243
1246
|
prediction_type = "v_prediction"
|
1244
1247
|
|
@@ -1333,7 +1336,18 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1333
1336
|
if image_size is None:
|
1334
1337
|
image_size = 1024
|
1335
1338
|
|
1336
|
-
if
|
1339
|
+
if pipeline_class is None:
|
1340
|
+
# Check if we have a SDXL or SD model and initialize default pipeline
|
1341
|
+
if model_type not in ["SDXL", "SDXL-Refiner"]:
|
1342
|
+
pipeline_class = StableDiffusionPipeline if not controlnet else StableDiffusionControlNetPipeline
|
1343
|
+
else:
|
1344
|
+
pipeline_class = StableDiffusionXLPipeline if model_type == "SDXL" else StableDiffusionXLImg2ImgPipeline
|
1345
|
+
|
1346
|
+
if num_in_channels is None and pipeline_class in [
|
1347
|
+
StableDiffusionInpaintPipeline,
|
1348
|
+
StableDiffusionXLInpaintPipeline,
|
1349
|
+
StableDiffusionXLControlNetInpaintPipeline,
|
1350
|
+
]:
|
1337
1351
|
num_in_channels = 9
|
1338
1352
|
if num_in_channels is None and pipeline_class == StableDiffusionUpscalePipeline:
|
1339
1353
|
num_in_channels = 7
|
@@ -1475,9 +1489,12 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1475
1489
|
config_name = "stabilityai/stable-diffusion-2"
|
1476
1490
|
config_kwargs = {"subfolder": "text_encoder"}
|
1477
1491
|
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1492
|
+
if text_encoder is None:
|
1493
|
+
text_model = convert_open_clip_checkpoint(
|
1494
|
+
checkpoint, config_name, local_files_only=local_files_only, **config_kwargs
|
1495
|
+
)
|
1496
|
+
else:
|
1497
|
+
text_model = text_encoder
|
1481
1498
|
|
1482
1499
|
try:
|
1483
1500
|
tokenizer = CLIPTokenizer.from_pretrained(
|
@@ -1677,7 +1694,9 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1677
1694
|
feature_extractor=feature_extractor,
|
1678
1695
|
)
|
1679
1696
|
elif model_type in ["SDXL", "SDXL-Refiner"]:
|
1680
|
-
|
1697
|
+
is_refiner = model_type == "SDXL-Refiner"
|
1698
|
+
|
1699
|
+
if (is_refiner is False) and (tokenizer is None):
|
1681
1700
|
try:
|
1682
1701
|
tokenizer = CLIPTokenizer.from_pretrained(
|
1683
1702
|
"openai/clip-vit-large-patch14", local_files_only=local_files_only
|
@@ -1686,7 +1705,11 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1686
1705
|
raise ValueError(
|
1687
1706
|
f"With local_files_only set to {local_files_only}, you must first locally save the tokenizer in the following path: 'openai/clip-vit-large-patch14'."
|
1688
1707
|
)
|
1708
|
+
|
1709
|
+
if (is_refiner is False) and (text_encoder is None):
|
1689
1710
|
text_encoder = convert_ldm_clip_checkpoint(checkpoint, local_files_only=local_files_only)
|
1711
|
+
|
1712
|
+
if tokenizer_2 is None:
|
1690
1713
|
try:
|
1691
1714
|
tokenizer_2 = CLIPTokenizer.from_pretrained(
|
1692
1715
|
"laion/CLIP-ViT-bigG-14-laion2B-39B-b160k", pad_token="!", local_files_only=local_files_only
|
@@ -1696,95 +1719,69 @@ def download_from_original_stable_diffusion_ckpt(
|
|
1696
1719
|
f"With local_files_only set to {local_files_only}, you must first locally save the tokenizer in the following path: 'laion/CLIP-ViT-bigG-14-laion2B-39B-b160k' with `pad_token` set to '!'."
|
1697
1720
|
)
|
1698
1721
|
|
1722
|
+
if text_encoder_2 is None:
|
1699
1723
|
config_name = "laion/CLIP-ViT-bigG-14-laion2B-39B-b160k"
|
1700
1724
|
config_kwargs = {"projection_dim": 1280}
|
1701
|
-
|
1702
|
-
checkpoint,
|
1703
|
-
config_name,
|
1704
|
-
prefix="conditioner.embedders.1.model.",
|
1705
|
-
has_projection=True,
|
1706
|
-
local_files_only=local_files_only,
|
1707
|
-
**config_kwargs,
|
1708
|
-
)
|
1709
|
-
|
1710
|
-
if is_accelerate_available(): # SBM Now move model to cpu.
|
1711
|
-
if model_type in ["SDXL", "SDXL-Refiner"]:
|
1712
|
-
for param_name, param in converted_unet_checkpoint.items():
|
1713
|
-
set_module_tensor_to_device(unet, param_name, "cpu", value=param)
|
1725
|
+
prefix = "conditioner.embedders.0.model." if is_refiner else "conditioner.embedders.1.model."
|
1714
1726
|
|
1715
|
-
if controlnet:
|
1716
|
-
pipe = pipeline_class(
|
1717
|
-
vae=vae,
|
1718
|
-
text_encoder=text_encoder,
|
1719
|
-
tokenizer=tokenizer,
|
1720
|
-
text_encoder_2=text_encoder_2,
|
1721
|
-
tokenizer_2=tokenizer_2,
|
1722
|
-
unet=unet,
|
1723
|
-
controlnet=controlnet,
|
1724
|
-
scheduler=scheduler,
|
1725
|
-
force_zeros_for_empty_prompt=True,
|
1726
|
-
)
|
1727
|
-
elif adapter:
|
1728
|
-
pipe = pipeline_class(
|
1729
|
-
vae=vae,
|
1730
|
-
text_encoder=text_encoder,
|
1731
|
-
tokenizer=tokenizer,
|
1732
|
-
text_encoder_2=text_encoder_2,
|
1733
|
-
tokenizer_2=tokenizer_2,
|
1734
|
-
unet=unet,
|
1735
|
-
adapter=adapter,
|
1736
|
-
scheduler=scheduler,
|
1737
|
-
force_zeros_for_empty_prompt=True,
|
1738
|
-
)
|
1739
|
-
else:
|
1740
|
-
pipe = pipeline_class(
|
1741
|
-
vae=vae,
|
1742
|
-
text_encoder=text_encoder,
|
1743
|
-
tokenizer=tokenizer,
|
1744
|
-
text_encoder_2=text_encoder_2,
|
1745
|
-
tokenizer_2=tokenizer_2,
|
1746
|
-
unet=unet,
|
1747
|
-
scheduler=scheduler,
|
1748
|
-
force_zeros_for_empty_prompt=True,
|
1749
|
-
)
|
1750
|
-
else:
|
1751
|
-
tokenizer = None
|
1752
|
-
text_encoder = None
|
1753
|
-
try:
|
1754
|
-
tokenizer_2 = CLIPTokenizer.from_pretrained(
|
1755
|
-
"laion/CLIP-ViT-bigG-14-laion2B-39B-b160k", pad_token="!", local_files_only=local_files_only
|
1756
|
-
)
|
1757
|
-
except Exception:
|
1758
|
-
raise ValueError(
|
1759
|
-
f"With local_files_only set to {local_files_only}, you must first locally save the tokenizer in the following path: 'laion/CLIP-ViT-bigG-14-laion2B-39B-b160k' with `pad_token` set to '!'."
|
1760
|
-
)
|
1761
|
-
config_name = "laion/CLIP-ViT-bigG-14-laion2B-39B-b160k"
|
1762
|
-
config_kwargs = {"projection_dim": 1280}
|
1763
1727
|
text_encoder_2 = convert_open_clip_checkpoint(
|
1764
1728
|
checkpoint,
|
1765
1729
|
config_name,
|
1766
|
-
prefix=
|
1730
|
+
prefix=prefix,
|
1767
1731
|
has_projection=True,
|
1768
1732
|
local_files_only=local_files_only,
|
1769
1733
|
**config_kwargs,
|
1770
1734
|
)
|
1771
1735
|
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
set_module_tensor_to_device(unet, param_name, "cpu", value=param)
|
1736
|
+
if is_accelerate_available(): # SBM Now move model to cpu.
|
1737
|
+
for param_name, param in converted_unet_checkpoint.items():
|
1738
|
+
set_module_tensor_to_device(unet, param_name, "cpu", value=param)
|
1776
1739
|
|
1777
|
-
|
1740
|
+
if controlnet:
|
1741
|
+
pipe = pipeline_class(
|
1742
|
+
vae=vae,
|
1743
|
+
text_encoder=text_encoder,
|
1744
|
+
tokenizer=tokenizer,
|
1745
|
+
text_encoder_2=text_encoder_2,
|
1746
|
+
tokenizer_2=tokenizer_2,
|
1747
|
+
unet=unet,
|
1748
|
+
controlnet=controlnet,
|
1749
|
+
scheduler=scheduler,
|
1750
|
+
force_zeros_for_empty_prompt=True,
|
1751
|
+
)
|
1752
|
+
elif adapter:
|
1753
|
+
pipe = pipeline_class(
|
1778
1754
|
vae=vae,
|
1779
1755
|
text_encoder=text_encoder,
|
1780
1756
|
tokenizer=tokenizer,
|
1781
1757
|
text_encoder_2=text_encoder_2,
|
1782
1758
|
tokenizer_2=tokenizer_2,
|
1783
1759
|
unet=unet,
|
1760
|
+
adapter=adapter,
|
1784
1761
|
scheduler=scheduler,
|
1785
|
-
|
1786
|
-
force_zeros_for_empty_prompt=False,
|
1762
|
+
force_zeros_for_empty_prompt=True,
|
1787
1763
|
)
|
1764
|
+
|
1765
|
+
else:
|
1766
|
+
pipeline_kwargs = {
|
1767
|
+
"vae": vae,
|
1768
|
+
"text_encoder": text_encoder,
|
1769
|
+
"tokenizer": tokenizer,
|
1770
|
+
"text_encoder_2": text_encoder_2,
|
1771
|
+
"tokenizer_2": tokenizer_2,
|
1772
|
+
"unet": unet,
|
1773
|
+
"scheduler": scheduler,
|
1774
|
+
}
|
1775
|
+
|
1776
|
+
if (pipeline_class == StableDiffusionXLImg2ImgPipeline) or (
|
1777
|
+
pipeline_class == StableDiffusionXLInpaintPipeline
|
1778
|
+
):
|
1779
|
+
pipeline_kwargs.update({"requires_aesthetics_score": is_refiner})
|
1780
|
+
|
1781
|
+
if is_refiner:
|
1782
|
+
pipeline_kwargs.update({"force_zeros_for_empty_prompt": False})
|
1783
|
+
|
1784
|
+
pipe = pipeline_class(**pipeline_kwargs)
|
1788
1785
|
else:
|
1789
1786
|
text_config = create_ldm_bert_config(original_config)
|
1790
1787
|
text_model = convert_ldm_bert_checkpoint(checkpoint, text_config)
|
@@ -410,13 +410,13 @@ class FlaxStableDiffusionPipeline(FlaxDiffusionPipeline):
|
|
410
410
|
|
411
411
|
images_uint8_casted = np.asarray(images_uint8_casted).reshape(num_devices * batch_size, height, width, 3)
|
412
412
|
images_uint8_casted, has_nsfw_concept = self._run_safety_checker(images_uint8_casted, safety_params, jit)
|
413
|
-
images = np.asarray(images)
|
413
|
+
images = np.asarray(images).copy()
|
414
414
|
|
415
415
|
# block images
|
416
416
|
if any(has_nsfw_concept):
|
417
417
|
for i, is_nsfw in enumerate(has_nsfw_concept):
|
418
418
|
if is_nsfw:
|
419
|
-
images[i] = np.asarray(images_uint8_casted[i])
|
419
|
+
images[i, 0] = np.asarray(images_uint8_casted[i])
|
420
420
|
|
421
421
|
images = images.reshape(num_devices, batch_size, height, width, 3)
|
422
422
|
else:
|
@@ -33,10 +33,7 @@ logger = logging.get_logger(__name__) # pylint: disable=invalid-name
|
|
33
33
|
|
34
34
|
# Copied from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion_img2img.preprocess with 8->64
|
35
35
|
def preprocess(image):
|
36
|
-
deprecation_message = (
|
37
|
-
"The preprocess method is deprecated and will be removed in diffusers 1.0.0. Please use"
|
38
|
-
" VaeImageProcessor.preprocess(...) instead"
|
39
|
-
)
|
36
|
+
deprecation_message = "The preprocess method is deprecated and will be removed in diffusers 1.0.0. Please use VaeImageProcessor.preprocess(...) instead"
|
40
37
|
deprecate("preprocess", "1.0.0", deprecation_message, standard_warn=False)
|
41
38
|
if isinstance(image, torch.Tensor):
|
42
39
|
return image
|
@@ -85,6 +82,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
|
|
85
82
|
feature_extractor ([`CLIPImageProcessor`]):
|
86
83
|
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
|
87
84
|
"""
|
85
|
+
|
88
86
|
vae_encoder: OnnxRuntimeModel
|
89
87
|
vae_decoder: OnnxRuntimeModel
|
90
88
|
text_encoder: OnnxRuntimeModel
|
@@ -80,6 +80,7 @@ class OnnxStableDiffusionInpaintPipeline(DiffusionPipeline):
|
|
80
80
|
feature_extractor ([`CLIPImageProcessor`]):
|
81
81
|
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
|
82
82
|
"""
|
83
|
+
|
83
84
|
vae_encoder: OnnxRuntimeModel
|
84
85
|
vae_decoder: OnnxRuntimeModel
|
85
86
|
text_encoder: OnnxRuntimeModel
|