"...text-generation-inference.git" did not exist on "842f6658e286f21f0212ae36ad2114125d81d46a"
Unverified Commit 9b2c0a7d authored by CyberVy's avatar CyberVy Committed by GitHub
Browse files

fix _callback_tensor_inputs of sd controlnet inpaint pipeline missing some elements (#11073)

* Update pipeline_controlnet_inpaint.py

* Apply style fixes
parent f424b1b0
......@@ -184,7 +184,14 @@ class StableDiffusionControlNetInpaintPipeline(
model_cpu_offload_seq = "text_encoder->image_encoder->unet->vae"
_optional_components = ["safety_checker", "feature_extractor", "image_encoder"]
_exclude_from_cpu_offload = ["safety_checker"]
_callback_tensor_inputs = ["latents", "prompt_embeds", "negative_prompt_embeds", "control_image"]
_callback_tensor_inputs = [
"latents",
"prompt_embeds",
"negative_prompt_embeds",
"control_image",
"mask",
"masked_image_latents",
]
def __init__(
self,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment