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

[Feature Request]: auto categorization of LoRA file

Open momoirodouhu opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

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

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 ?

momoirodouhu avatar May 13 '23 16:05 momoirodouhu

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

Amorano avatar May 13 '23 19:05 Amorano

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?

momoirodouhu avatar May 14 '23 01:05 momoirodouhu