Skip to content

Commit

Permalink
prevent extra modules from being saved/loaded with hypernet
Browse files Browse the repository at this point in the history
  • Loading branch information
AUTOMATIC1111 committed Oct 11, 2022
1 parent d4ea5f4 commit 6a9ea5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/hypernetworks/hypernetwork.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, name=None, enable_sizes=None):
self.sd_checkpoint = None
self.sd_checkpoint_name = None

for size in enable_sizes or [320, 640, 768, 1280]:
for size in enable_sizes or []:
self.layers[size] = (HypernetworkModule(size), HypernetworkModule(size))

def weights(self):
Expand Down

0 comments on commit 6a9ea5b

Please sign in to comment.