stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

[Feature Request]: Better LoRA and Checkpoints searching (Search in folder and subfolders without knowing full path)

Open NemukaPrime opened this issue 1 year ago • 0 comments

Hello, I would like to have a better way of searching like in the program "Everything" by voidtools. In that program, you can search under subfolders easily.

In the "Everything" program, the user can just type Lora\SDXL-Lora\Styles pixel and it will search all items in the folder "Lora\SDXL-Lora\Styles" that have the word "pixel" in the filename.

But here's how it's like in in Forge WebUI. Using Tree View, let's say I have a folder called "Lora\SDXL-Lora" and I want to search the LoRAs inside it. In the search bar, I put "Lora\SDXL-Lora" which shows all the LoRas in that folder and subfolders. But the moment I add a space and type other keywords, nothing is displayed.

For example, if I want to search for a pixel art style LoRA in the main SDXL folder, the expected behavior is to be able to search Lora\SDXL-Lora\ pixel (note the space) and it would show, even if it's not in the Lora\SDXL-Lora parent folder but in a Style subfolder. But what happens is the user has to type "Lora\SDXL-Lora\Styles\p" for that specific LoRA to show (that is, if the name even starts with a "p". If the pixel style is named "SDXL_pixel_style", nothing may show up at all.)

I think that currently, using the search bar demands an exact match, which is quite inconvenient if the user doesn't know where the LoRA is exactly, which is why search is being used in the first place.

Also, simply typing "pixel" in search doesn't give a close match as well if the user has different folders with different base model checkpoints like SDXL, SD1.5, Flux all with their own versions of "pixel art style" and you just want the pixel LoRAs for a certain model.

It would also be nice if a user has organized by file name and can search "SDXL sword" to search for all LoRAs that are for SDXL and are related to swords, without having to go in the individual subfolders for pose, object, character, concept. Thank you.

NemukaPrime avatar Sep 30 '24 03:09 NemukaPrime