anapnoe / stable-diffusion-webui-ux

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

[Bug]: Replace preview for extra hypernetwork ignores the filter #135

Closed rlach closed 1 year ago

rlach commented 1 year ago

Is there an existing issue for this?

What happened?

When you press "replace preview" for lora or other type of extra hypernetwork the view for ETs is refreshed. This view has also a search filter. After refreshing the filter is ignored.

For example I have my background loras in backgrounds/ folder and I can filter by that. After I press the "replace preview" button it shows all loras I have, even though the filter input still shows backgrounds/. It preserves the scroll position though.

I can write a character in filter input then backspace to get the filter working again, but that resets the scroll position. If I'm trying to test out many loras this really slows down the process.

Steps to reproduce the problem

  1. Go to txt2img
  2. Press extra networks button
  3. In "Search..." type something that will have results
  4. Generate an image
  5. Press "replace preview"

What should have happened?

The view refreshes, the preview is replaced, the scroll position is kept, and the search filter is kept, and it's still filtering the hypernetworks.

Commit where the problem happens

7d823b23

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

--no-half-vae --medvram --api --xformers

List of extensions

a1111-sd-webui-locon | https://github.com/KohakuBlueleaf/a1111-sd-webui-locon | 04b768ba (Fri Apr 14 17:00:50 2023) | unknown -- | -- | -- | -- multidiffusion-upscaler-for-automatic1111 | https://github.com/pkuliyi2015/multidiffusion-upscaler-for-automatic1111 | 8d8be4c3 (Wed May 3 08:38:21 2023) | unknown openOutpaint-webUI-extension | https://github.com/zero01101/openOutpaint-webUI-extension | 5e84d6d5 (Mon Apr 10 23:01:41 2023) | unknown openpose-editor | https://github.com/fkunn1326/openpose-editor | d74fdd72 (Tue May 2 09:49:03 2023) | unknown sd-dynamic-prompts | https://github.com/adieyal/sd-dynamic-prompts.git | a53adac9 (Sun Apr 23 13:28:49 2023) | unknown sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet | 8fd1fcdc (Wed May 3 07:52:58 2023) | unknown sd-webui-cutoff | https://github.com/hnmr293/sd-webui-cutoff | 3a073e9c (Wed May 3 07:14:40 2023) | unknown sd_dreambooth_extension | https://github.com/d8ahazard/sd_dreambooth_extension.git | 926ae204 (Fri Mar 31 15:12:45 2023) | unknown stable-diffusion-webui-composable-lora | https://github.com/opparco/stable-diffusion-webui-composable-lora | d4963e48 (Mon Feb 27 17:40:08 2023) | unknown stable-diffusion-webui-two-shot | https://github.com/opparco/stable-diffusion-webui-two-shot | 9936c52e (Sun Feb 19 08:40:41 2023) | unknown ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111 | d002fdfc (Mon May 1 03:37:09 2023) | unknown ### Console logs ```Shell Startup time: 5.2s (load scripts: 0.4s, create ui: 4.5s, gradio launch: 0.1s). 100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00, 4.80it/s] Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00, 4.71it/s] locon load lora method█████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00, 5.48it/s] 100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00, 4.35it/s] ``` ### Additional information _No response_