Skip to content

Commit

Permalink
hires_fix pipeline support for layerdiffuse:
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Jul 7, 2024
1 parent bf16d3e commit db602a9
Show file tree
Hide file tree
Showing 5 changed files with 555 additions and 246 deletions.
2 changes: 2 additions & 0 deletions hordelib/horde.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,8 @@ def _final_pipeline_adjustments(self, payload, pipeline_data) -> tuple[dict, lis
self.generator.reconnect_input(pipeline_data, "layer_diffuse_apply.model", "model_loader")
self.generator.reconnect_input(pipeline_data, "output_image.images", "layer_diffuse_decode_rgba")
self.generator.reconnect_input(pipeline_data, "layer_diffuse_decode_rgba.images", "vae_decode")
if payload.get("hires_fix") is True:
self.generator.reconnect_input(pipeline_data, "upscale_sampler.model", "layer_diffuse_apply")
if model_details.get("baseline") == "stable diffusion 1":
pipeline_params["layer_diffuse_apply.config"] = "SD15, Attention Injection, attn_sharing"
pipeline_params["layer_diffuse_decode_rgba.sd_version"] = "SD15"
Expand Down
Loading

0 comments on commit db602a9

Please sign in to comment.