diff options
author | 不会画画的中医不是好程序员 <yfszzx@gmail.com> | 2022-10-20 16:07:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 16:07:31 +0000 |
commit | dc66540629975a2a92128833e39702bfc955b15b (patch) | |
tree | 0cc97ee11e71c507b56a15cc63a406aa50130073 | |
parent | d07cb46f34b3d9fe7a78b102f899ebef352ea56b (diff) | |
parent | 7f8ab1ee8f304031b3404e25761dd0f4c7be7df8 (diff) | |
download | stable-diffusion-webui-gfx803-dc66540629975a2a92128833e39702bfc955b15b.tar.gz stable-diffusion-webui-gfx803-dc66540629975a2a92128833e39702bfc955b15b.tar.bz2 stable-diffusion-webui-gfx803-dc66540629975a2a92128833e39702bfc955b15b.zip |
Merge branch 'AUTOMATIC1111:master' into Inspiron
-rw-r--r-- | modules/hypernetworks/ui.py | 2 |
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,
|