1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add a way to set output block patches to modify the h and hsp.

This commit is contained in:
comfyanonymous
2023-09-22 20:26:47 -04:00
parent 29ccf9f471
commit afa2399f79
2 changed files with 9 additions and 0 deletions

View File

@@ -88,6 +88,9 @@ class ModelPatcher:
def set_model_attn2_output_patch(self, patch):
self.set_model_patch(patch, "attn2_output_patch")
def set_model_output_block_patch(self, patch):
self.set_model_patch(patch, "output_block_patch")
def model_patches_to(self, device):
to = self.model_options["transformer_options"]
if "patches" in to: