Skip to content

Commit

Permalink
update logic for saving layer
Browse files Browse the repository at this point in the history
  • Loading branch information
gblong1 committed Sep 24, 2024
1 parent c7c2807 commit fcbef37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def handle_client_data(data, conn, engine, model_name, model_path, scheduler):

image = "sd_cache.png"

if "controlnet" in model_name or model_name == "sd_1.5_square_lcm" or "sd_3.0" in model_name:
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:
output.save(os.path.join(weight_path, "..", image))
src_width, src_height = output.size
else:
Expand Down

0 comments on commit fcbef37

Please sign in to comment.