mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 13:19:54 +00:00
support specifying te and unet weights separately
update lora code support full module
This commit is contained in:
@@ -2,7 +2,6 @@ import torch
|
||||
|
||||
import lyco_helpers
|
||||
import network
|
||||
import network_lyco
|
||||
|
||||
|
||||
class ModuleTypeLokr(network.ModuleType):
|
||||
@@ -22,7 +21,7 @@ def make_kron(orig_shape, w1, w2):
|
||||
return torch.kron(w1, w2).reshape(orig_shape)
|
||||
|
||||
|
||||
class NetworkModuleLokr(network_lyco.NetworkModuleLyco):
|
||||
class NetworkModuleLokr(network.NetworkModule):
|
||||
def __init__(self, net: network.Network, weights: network.NetworkWeights):
|
||||
super().__init__(net, weights)
|
||||
|
||||
|
Reference in New Issue
Block a user