aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authordiscus0434 <66945496+discus0434@users.noreply.github.com>2022-10-20 18:51:12 +0900
committerGitHub <noreply@github.com>2022-10-20 18:51:12 +0900
commit6b38c2c19cbc4e536fa6d87bbe37dd4184e54db1 (patch)
tree16f5ef6e0e4acffb5304a4a4451ca5237eba976e /modules
parentba469343e6a1c6e23e82acf5feb65c6101dacbb2 (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 83f9547b..1a5a27d8 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,