mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 11:12:35 +00:00
style: formatting
This commit is contained in:
@@ -37,7 +37,7 @@ class NetworkModuleOFT(network.NetworkModule):
|
||||
def apply_to(self):
|
||||
self.org_forward = self.org_module[0].forward
|
||||
self.org_module[0].forward = self.forward
|
||||
|
||||
|
||||
def get_weight(self, oft_blocks, multiplier=None):
|
||||
block_Q = oft_blocks - oft_blocks.transpose(1, 2)
|
||||
norm_Q = torch.norm(block_Q.flatten())
|
||||
@@ -66,7 +66,7 @@ class NetworkModuleOFT(network.NetworkModule):
|
||||
output_shape = self.oft_blocks.shape
|
||||
|
||||
return self.finalize_updown(updown, orig_weight, output_shape)
|
||||
|
||||
|
||||
def forward(self, x, y=None):
|
||||
x = self.org_forward(x)
|
||||
if self.multiplier() == 0.0:
|
||||
|
Reference in New Issue
Block a user