anapnoe / stable-diffusion-webui-ux

Stable Diffusion web UI UX
GNU Affero General Public License v3.0
970 stars 58 forks source link

[Bug]: Additional Networks subfolder issues #112

Open PaulCoddington opened 1 year ago

PaulCoddington commented 1 year ago

Is there an existing issue for this?

What happened?

Subfolder and filter support are not fully operational for all network types.

LoRA: • subfolders and filters work OK. • normal subfolders and symlink subfolders work OK.

LyCORIS: • subfolders and filters work OK. • normal subfolders and symlink subfolders work OK.

HyperNetwork: • subfolders and filters work OK. • normal subfolders and symlink subfolders work OK.

Checkpoint: • models in subfolders are displayed in ALL (OK) • models in subfolders are not displayed when subfolders are selected in filter (BUG)

Textual Inversion: • subfolders and filters work OK, but not symlink subfolders (BUG).

Steps to reproduce the problem

  1. Arrange parts of Additional Networks collections within subfolders.
  2. Compare ALL and subfolder filters for each pane.
  3. Repeat with at least one symlink subfolder per pane.

What should have happened?

Additional Networks pane subfolder/filter behaviour expected to be consistent for all network types.

Commit where the problem happens

434c67d

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

--medvram --no-half-vae --xformers --skip-install --autolaunch

List of extensions

a1111-sd-webui-lycoris a1111-sd-webui-tagcomplete clip-interrogator-ext DreamArtist-sd-webui-extension multidiffusion-upscaler-for-automatic1111 sd-webui-aspect-ratio-helper sd-webui-controlnet sd-webui-cutoff sd-webui-model-converter stable-diffusion-webui-images-browser stable-diffusion-webui-promptgen ultimate-upscale-for-automatic1111

Console logs

Python 3.10.6 | packaged by conda-forge | (main, Oct 24 2022, 16:02:16) [MSC v.1916 64 bit (AMD64)]
Commit hash: ad801b1beb2ba6b93f428f1dca9d12e53cbde560
Installing requirements for scikit_learn
Launching Web UI with arguments: --medvram --no-half-vae --xformers --autolaunch
Loading weights [6ce0161689] from C:\ProgramData\Stable Diffusion\stable-diffusion-webui-ux\models\Stable-Diffusion\Stable Diffusion.safetensors
Creating model from config: C:\ProgramData\Stable Diffusion\stable-diffusion-webui-ux\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying xformers cross attention optimization.
Model loaded in 2.0s (create model: 0.4s, apply weights to model: 0.8s, apply half(): 0.7s).
Running on local URL:  http://127.0.0.1:7860
To create a public link, set `share=True` in `launch()`.
Startup time: 13.2s (import gradio: 2.7s, import ldm: 0.9s, other imports: 1.8s, list extensions: 1.1s, setup codeformer: 0.1s, load scripts: 2.3s, load SD checkpoint: 2.5s, create ui: 1.3s, gradio launch: 0.4s).

Additional information

Problem can be replicated in another fork (vladmandic).

Windows 11 Professional 22H2 Miniconda3

anapnoe commented 1 year ago

can you upgrade the ui-ux and report back? I can't reproduce the issue with the latest commit

PaulCoddington commented 1 year ago

Upgraded to latest commit and realised the problem was not quite as described (apologies, my error).

The issue with Checkpoint subfolders not being filtered/displayed occurs when the parent Models folder itself is a symlink (although other network panes work fine with this arrangement).

Embeddings symlink subfolder is now working, but it does not handle unresolvable symlinks (offline media) gracefully (python errors) as others do (unresolvable symlinks reported as "ignored" in log).

halr9000 commented 8 months ago

Are symlinks to embeddings working for anyone? I know they used to, but coming now from install via stability matrix (issue there), and the embeddings they manage via symlink aren't showing up which is very odd...

UX: image

symlinked folder with TIs in it: image