Skip to content

Commit 84bc480

Browse files
authored
Merge pull request #136 from intel/controlnet_refonly_initimage_fix
Controlnet refonly initimage fix
2 parents c136cde + fcbef37 commit 84bc480

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gimpopenvino/plugins/openvino_utils/tools/stable_diffusion_ov_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def handle_client_data(data, conn, engine, model_name, model_path, scheduler):
281281
output = engine(
282282
prompt=prompt,
283283
negative_prompt=negative_prompt,
284-
init_image=Image.open(init_image),
284+
image=Image.open(init_image),
285285
scheduler=scheduler,
286286
num_inference_steps=num_infer_steps,
287287
guidance_scale=guidance_scale,
@@ -368,7 +368,7 @@ def handle_client_data(data, conn, engine, model_name, model_path, scheduler):
368368

369369
image = "sd_cache.png"
370370

371-
if "controlnet" in model_name or model_name == "sd_1.5_square_lcm" or "sd_3.0" in model_name:
371+
if ("controlnet" in model_name or model_name == "sd_1.5_square_lcm" or "sd_3.0" in model_name) and "referenceonly" not in model_name:
372372
output.save(os.path.join(weight_path, "..", image))
373373
src_width, src_height = output.size
374374
else:

0 commit comments

Comments
 (0)