aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorpapuSpartan <30642826+papuSpartan@users.noreply.github.com>2022-10-20 01:59:49 -0500
committerGitHub <noreply@github.com>2022-10-20 01:59:49 -0500
commit8931a825f48ad6914becd2e21edf3f39bd436177 (patch)
tree61e05dccc1be7f2659ce7302ffdd7f5befa0cb61 /modules
parent158d678f596d7fc304a6ce2f0dc31f8abfe62250 (diff)
parent7f8ab1ee8f304031b3404e25761dd0f4c7be7df8 (diff)
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'modules')
-rw-r--r--modules/hypernetworks/ui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/hypernetworks/ui.py b/modules/hypernetworks/ui.py
index 08f75f15..e0741d08 100644
--- a/modules/hypernetworks/ui.py
+++ b/modules/hypernetworks/ui.py
@@ -15,7 +15,7 @@ def create_hypernetwork(name, enable_sizes, layer_structure=None, add_layer_norm
assert not os.path.exists(fn), f"file {fn} already exists"
if type(layer_structure) == str:
- layer_structure = tuple(map(int, re.sub(r'\D', '', layer_structure)))
+ layer_structure = [float(x.strip()) for x in layer_structure.split(",")]
hypernet = modules.hypernetworks.hypernetwork.Hypernetwork(
name=name,