Fixed ControlLLLite issue with tiled samplers

This commit is contained in:
Jedrzej Kosinski
2024-02-06 04:30:54 -06:00
parent 7a34d00c6a
commit d1d7f322a8
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -287,8 +287,8 @@ class ControlLLLiteAdvanced(ControlBase, AdvancedControlBase):
def __init__(self, patch_attn1: LLLitePatch, patch_attn2: LLLitePatch, timestep_keyframes: TimestepKeyframeGroup, device=None):
super().__init__(device)
AdvancedControlBase.__init__(self, super(), timestep_keyframes=timestep_keyframes, weights_default=ControlWeights.controllllite(), require_model=True)
self.patch_attn1 = patch_attn1.clone_with_control(self)
self.patch_attn2 = patch_attn2.clone_with_control(self)
self.patch_attn1 = patch_attn1.set_control(self)
self.patch_attn2 = patch_attn2.set_control(self)
self.latent_dims_div2 = None
self.latent_dims_div4 = None
+2 -1
View File
@@ -82,8 +82,9 @@ class LLLitePatch:
self.modules[d] = self.modules[d].to(device)
return self
def set_control(self, control: Union[AdvancedControlBase, ControlBase]):
def set_control(self, control: Union[AdvancedControlBase, ControlBase]) -> 'LLLitePatch':
self.control = control
return self
#logger.error(f"set control for LLLitePatch: {id(self)}, cn: {id(control)}")
def clone_with_control(self, control: AdvancedControlBase):