KohakuBlueleaf / a1111-sd-webui-lycoris

An extension for stable-diffusion-webui to load lycoris models.
Apache License 2.0
862 stars 117 forks source link

TypeError: Float() argument must be a string or real number, not 'NoneType' #25

Closed Gazzoo-byte closed 1 year ago

Gazzoo-byte commented 1 year ago

Getting the following error on Vlad's fork (haven't tested base a1111) using b2a4e5f9 of this extension, it appears to be irrespective of which lyco is selected, prompt length, sampler, and other extensions. If there's any further information I can provide to help diagnose please let me know

Error activating extra network lyco with arguments [<modules.extra_networks.ExtraNetworkParams object at
0x0000020191F05A50>]: TypeError
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ E:\AIStuff\automatic\modules\extra_networks.py:75 in activate                                                        │
│                                                                                                                      │
│    74 │   │   try:                                                                                                   │
│ ❱  75 │   │   │   extra_network.activate(p, extra_network_args)                                                      │
│    76 │   │   except Exception as e:                                                                                 │
│                                                                                                                      │
│ E:\AIStuff\automatic\extensions-builtin\a1111-sd-webui-lycoris\extra_networks_lyco.py:69 in activate                 │
│                                                                                                                      │
│   68 │   │   │   names.append(params.items[0])                                                                       │
│ ❱ 69 │   │   │   te, unet, dyn_dim = parse_args(params.items[1:])                                                    │
│   70 │   │   │   if unet is None:                                                                                    │
│                                                                                                                      │
│ E:\AIStuff\automatic\extensions-builtin\a1111-sd-webui-lycoris\extra_networks_lyco.py:35 in parse_args               │
│                                                                                                                      │
│   34 │   │   else:                                                                                                   │
│ ❱ 35 │   │   │   x = type(x)                                                                                         │
│   36                                                                                                                 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: float() argument must be a string or a real number, not 'NoneType'
MADxingjin commented 1 year ago

Encountered same problem.

KohakuBlueleaf commented 1 year ago

I guess my default value system is broken Give me some time to fix it

KohakuBlueleaf commented 1 year ago

@MADxingjin @Gazzoo-byte I pushed a fix for it Plz check !

BigBlueGX commented 1 year ago

It is fixed now.

Had the same issue. Not anymore