AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
139.55k stars 26.46k forks source link

[Feature Request]: auto categorization of LoRA file #10341

Open momoirodouhu opened 1 year ago

momoirodouhu commented 1 year ago

Is there an existing issue for this?

What would your feature do ?

Files in "models" directory is moved to each type directory (e.g. Stable-diffusion , LDSR). this is where the feature was written it looks LoRA file is not supported.

It is unable to categorize by file name but categorization by file size is able. https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/b08500cec8a791ef20082628b49b17df833f5dda/modules/modelloader.py#L71-L94

Proposed workflow

  1. Put LoRA file to under models directory
  2. start program
  3. LoRA file is automatically located in "models/Lora/" directory

Additional information

To do this , filter of file size must be added in move_files function. I don't think it is good idea to add it just for this feature. What can I do ?

Amorano commented 1 year ago

Lora is supported. They literally go inside the models/Lora folder.

momoirodouhu commented 1 year ago

I tried to put this LoRA file into "models" directory and run. this message was printed in console. Moving yuzuki_yukari_f02_AC_-000003.safetensors from F:\Desktop\stable-diffusion-webui\models to F:\Desktop\stable-diffusion-webui\models\Stable-diffusion.

The file must be moved to "models/Lora" but it wasn't. Is this only in my environment?