Skip to content

Commit fcbef37

Browse files
committed
update logic for saving layer
1 parent c7c2807 commit fcbef37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gimpopenvino/plugins/openvino_utils/tools/stable_diffusion_ov_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)