Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: additional networks does not list any models #141

Closed
1 task done
halr9000 opened this issue May 15, 2023 · 22 comments
Closed
1 task done

[Bug]: additional networks does not list any models #141

halr9000 opened this issue May 15, 2023 · 22 comments

Comments

@halr9000
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What happened?

Networks are gone:
image

Steps to reproduce the problem

  1. Start webui
  2. click additional networks button
  3. no networks are shown

Have tried

  • multiple devices and browsers
  • disabling recent extensions (by memory, possible I missed some)
  • restarted process/terminal
  • ctrl-F5 hard refresh
  • incognito mode

What should have happened?

Should see TI, Checkpoints, Lora etc

Commit where the problem happens

9aba26abdfcd46073e0a1d42027a3a3bcc969f562d58a03637bf0a0ded6586c9

What platforms do you use to access the UI ?

Windows, iOS, Android

What browsers do you use to access the UI ?

Google Chrome, Apple Safari

Command Line Arguments

set COMMANDLINE_ARGS=--listen --enable-insecure-extension-access --no-half --api --xformers --update-all-extensions --ckpt-dir="D:\hal\stable-diffusion\models\Stable-diffusion" --lora-dir="D:\hal\stable-diffusion\models\Lora" --embeddings-dir="D:\hal\stable-diffusion\models\Embeddings" --hypernetwork-dir="D:\hal\stable-diffusion\models\Hypernetworks"

List of extensions

a1111-sd-webui-locon
a1111-sd-webui-lycoris
a1111-sd-webui-tagcomplete
depthmap2mask
multidiffusion-upscaler-for-automatic1111
OneButtonPrompt
sd-canvas-editor
sd-dynamic-prompts
sd-extension-system-info
sd-webui-3d-open-pose-editor
sd-webui-ar
sd-webui-aspect-ratio-helper
sd-webui-controlnet
sd-webui-enable-checker
sd-webui-infinite-image-browsing
sd-webui-inpaint-anything
sd-webui-regional-prompter
sd-webui-segment-anything
Stable-Diffusion-Webui-Civitai-Helper
stable-diffusion-webui-composable-lora
stable-diffusion-webui-nsfw-censor
stable-diffusion-webui-promptgen
stable-diffusion-webui-two-shot
ultimate-upscale-for-automatic1111

Console logs

I see no errors. :( 

Launching Web UI with arguments: --listen --enable-insecure-extension-access --no-half --api --xformers --update-all-extensions --ckpt-dir=D:\hal\stable-diffusion\models\Stable-diffusion --lora-dir=D:\hal\stable-diffusion\models\Lora --embeddings-dir=D:\hal\stable-diffusion\models\Embeddings --hypernetwork-dir=D:\hal\stable-diffusion\models\Hypernetworks
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: D:\hal\stable-diffusion\ux\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
Loading weights [9aba26abdf] from D:\hal\stable-diffusion\models\Stable-diffusion\sd15\deliberate_v2.safetensors
Creating model from config: D:\hal\stable-diffusion\ux\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(32): 16-token-negative-deliberate-neg, AS-Young, AS-Young-neg, AS-Younger, AS-Youngest, Bsft, dangerdonkey, easynegative, fractal-flame, gothbuilding, hobbithouse, hobbithouse_2, hrgiger-drmacabre, Isometric_Dreams, kc16-4000-sd1-5, kkw-micro, ng_deepnegative_v1_64t, photozoov15, Planit, qualityzoov15, renderzoov15, structurezoov15, Style-Glass, Style-Info, style-paintmagic, Style-Psycho, Style-Renaissance, style-rustmagic, Style-Winter, vintagemap_f, was-dieselpunk, was-mecha
Textual inversion embeddings skipped(10): dangerhorse, Neg_Facelift768, nfixer, nrealfixer, photozoov21, DrD_PNTE768, Painted_Landscape, ParchArt, Davespacefour, Knollingcase
Model loaded in 3.2s (load weights from disk: 0.2s, create model: 0.3s, apply weights to model: 0.7s, move model to device: 1.1s, load textual inversion embeddings: 0.9s).
ControlNet v1.1.170
ControlNet v1.1.170
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 19.6s (import torch: 2.2s, import gradio: 1.1s, import ldm: 0.6s, other imports: 0.9s, load scripts: 6.5s, create ui: 3.8s, gradio launch: 4.3s).

Additional information

Checked js console, nothing helpful there either.

@anapnoe
Copy link
Owner

anapnoe commented May 15, 2023

can you check if it is ok now?

@halr9000
Copy link
Author

can you check if it is ok now?

Interesting, its failing to load due to bad settings detected, which I've never seen before. See if I can fix this, will report back.

Launching Web UI with arguments: --listen --enable-insecure-extension-access --no-half --api --xformers --update-all-extensions --ckpt-dir=D:\hal\stable-diffusion\models\Stable-diffusion --lora-dir=D:\hal\stable-diffusion\models\Lora --embeddings-dir=D:\hal\stable-diffusion\models\Embeddings --hypernetwork-dir=D:\hal\stable-diffusion\models\Hypernetworks
Warning: bad setting value: quicksettings: sd_model_checkpoint,ui_header_tabs,outdir_samples,samples_save (str; expected list)
The program is likely to not work with bad settings.
Settings file: D:\hal\stable-diffusion\ux\config.json
Either fix the file, or delete it and restart.
<snip stuff about models loading etc>
Traceback (most recent call last):
  File "D:\hal\stable-diffusion\ux\launch.py", line 370, in <module>
    start()
  File "D:\hal\stable-diffusion\ux\launch.py", line 365, in start
    webui.webui()
  File "D:\hal\stable-diffusion\ux\webui.py", line 295, in webui
    shared.demo = modules.ui.create_ui()
  File "D:\hal\stable-diffusion\ux\modules\ui.py", line 1660, in create_ui
    component = create_setting_component(k, elem_id)
  File "D:\hal\stable-diffusion\ux\modules\ui.py", line 1551, in create_setting_component
    raise Exception(f'bad options item type: {t} for key {key}')
Exception: bad options item type: <class 'list'> for key quicksettings

@halr9000
Copy link
Author

halr9000 commented May 15, 2023

Turned the str into a list, that resolved the first error (? did you work on the parser for this setting?), but the second fatal one was still there.

Removed key entirely, same.

Renamed config.json out of the way, webui made a new one (on left in this diff) -- which still throws an error! Gotta revert.
image

@halr9000
Copy link
Author

Reverted back to 94a759b, had to rm config.json for it to start. (Should work with my backup, just haven't tried that yet.)

@anapnoe
Copy link
Owner

anapnoe commented May 15, 2023

yes it is fixed now I did also remove the config some property cause the problem didnt search to find which one
the quicksettings is used by ui-ux,
the quicksettings_list is used by autos new update
they need to be both present that is for me when to update from upstream not to have many conflicts
they are hidden in ui settings so people dont get confused

@halr9000
Copy link
Author

Ok the networks tab looks fixed! But now it has a new bug lol. Not too bad though. All of the preview pics and text are muted, almost grayed out. Can you tell from this shot?

image

@halr9000
Copy link
Author

halr9000 commented May 15, 2023

P.S. while you are in here, can you autohide empty tabs? Lycoris does nothing. Made issue #147

@anapnoe
Copy link
Owner

anapnoe commented May 15, 2023

can you disable civitai i suspect it has something to do with this i will look into it

@PaulCoddington
Copy link

PaulCoddington commented May 15, 2023

Reinstalled from scratch to ensure customisations/tweaks not causing issues.

Confirmed symlinked subfolders no longer load when running a Miniconda-based environment in Windows 11; #142 might not be a duplicate after all.

eg:

\models\LoRA [OK]
\models\LoRA\subfolder [OK]
\models\LoRA\symlink [still broken]

Also applicable to all other network types.

Otherwise, Extra Networks pane seems to be working correctly for standard folders.

When symlinks were working, I noticed identically named subfolders are combined. This could be seen as both a bug and a feature, depending on user intent.

So, selecting a button for path '\people' displays content from both '.\people' and '.\other\people'.

@Linaqruf
Copy link

Uhh, got the same problem when running it in Colab Notebook, and not only LoRA but also other model card won't load or greyed out even though it's there in the folder.

image

@PaulCoddington
Copy link

PaulCoddington commented May 16, 2023

This appears to be the most recent commit where Extra Networks still worked with symlinks:

Revision: f2b9c2c
Date: 12/05/2023 11:57:05 pm

Looks like symlinks were broken with the release candidate merge:

Revision: b08500c
Date: 13/05/2023 5:16:37 pm

Problem persists through to commit 3c31e25.

@anapnoe
Copy link
Owner

anapnoe commented May 16, 2023

thanks for this very helpful info I will look into it

@anapnoe
Copy link
Owner

anapnoe commented May 16, 2023

@Linaqruf can you confirm this is related to #148
and has been fixed?

@Linaqruf
Copy link

Thank you for the fix, but I think my issue is different from #148, because it hasn't been fixed on my side. Extra network menu still greyed out and can't load the card.

I'm using f2b9c2c right now and the extra network menu is normal, unlike the latest commit

Should I create new issue for this?

Commit hash: 64715b5

image

Commit hash: f2b9c2c

image

@halr9000
Copy link
Author

can you disable civitai i suspect it has something to do with this i will look into it

I think you already ruled this out, but just in case not -- still grayed out w/o civitai.

@PaulCoddington
Copy link

Just noticed that "directory hiding for extra networks: dirs starting with . will hide their cards on extra network tabs unless specifically searched for" is not working. Cards and filter/path buttons remain visible.

@pseudokawaii
Copy link

It may not be a useful information but ddd44e4 works for me without causing any major surface level issues. The only minor issue is i have to reload the extra networks tab every time for them to show up.

@anapnoe
Copy link
Owner

anapnoe commented May 16, 2023

Thank you for the fix, but I think my issue is different from #148, because it hasn't been fixed on my side. Extra network menu still greyed out and can't load the card.

I'm using f2b9c2c right now and the extra network menu is normal, unlike the latest commit

Should I create new issue for this?

Commit hash: 64715b5

image

Commit hash: f2b9c2c

image

Commit hash: 37f3b28
latest I see no issue
Untitled
Untitledi

@mart-hill
Copy link

mart-hill commented May 16, 2023

Ah, so that's why I didn't see any finalized image after generation as of late - I redirected the whole output folder to a HDD with junction (symlink). The same goes for models, since they eat up SSD space, like crazy. :)

@pseudokawaii
Copy link

Thank you for the fix, but I think my issue is different from #148, because it hasn't been fixed on my side. Extra network menu still greyed out and can't load the card.
I'm using f2b9c2c right now and the extra network menu is normal, unlike the latest commit
Should I create new issue for this?
Commit hash: 64715b5
image
Commit hash: f2b9c2c
image

Commit hash: 37f3b28 latest I see no issue Untitled Untitledi

Screenshot_20230517-015822_Chrome
Commit 37f3b28 and it's still greyed out for me too.

@Linaqruf
Copy link

Thank you for the fix, but I think my issue is different from #148, because it hasn't been fixed on my side. Extra network menu still greyed out and can't load the card.
I'm using f2b9c2c right now and the extra network menu is normal, unlike the latest commit
Should I create new issue for this?
Commit hash: 64715b5
image
Commit hash: f2b9c2c
image

Commit hash: 37f3b28 latest I see no issue Untitled Untitledi

Did you launch the notebook with default setting? because I put the stable commit in commit_hash where the extra networks still working.

image

@Linaqruf
Copy link

Oh, thank you! I think it's fixed on my side. I don't know about others. It also took some time to load the model card.

Commit hash: 37f3b28

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants