Yinzo / sd-webui-Lora-queue-helper

A Script that help you generate a batch of Lora, using same prompt & settings. Helpful for compare Lora, Or just switching Lora easily without switch tab.
MIT License
30 stars 5 forks source link

Feature Request: Nested subfolders support #6

Closed simonmcnair closed 6 months ago

simonmcnair commented 9 months ago

Great script but doesn't show nested subfolders. eg fictional/dccomics/batman.

Thanks for your efforts though and I can understand why nesting would be a pain programatically.

Yinzo commented 9 months ago

I think I can support that, maybe these days. Maybe not very elegant, but at least I can make it work on nested path.

Yinzo commented 9 months ago

Done, if there is any problem, feel free to tell me in this issue.

simonmcnair commented 9 months ago

thanks. Weird question you may have insight into. Somehow a LORA in a different folder got triggered, it has the same activation word, but the filename is different. Any ideas if/how that could happen ?

Yinzo commented 9 months ago

thanks. Weird question you may have insight into. Somehow a LORA in a different folder got triggered, it has the same activation word, but the filename is different. Any ideas if/how that could happen ?

Is this a problem when using this script, or it appears all the time no matter with/without script ?

In A1111's default settings, LoRA is used when its alias (also name "output_name" in meta data of LoRA, it's a author configured trigger word from model file) is included in the prompt, no matter LoRA's path, so if there are multiple LoRA with same alias, it will cause A1111 don't know which LoRA should be used.

You can change that in the A1111's settings > Extra Networks > "When adding to prompt, refer to Lora by", and choose "Filename" instead of "Alias from file", that should make A1111 choose LoRA by filename but not it's alias.

Also you can change the alias name manually, using this tool https://lorainfo.tools/, change the "ss_output_name" in Meta data part to anything you want, but keep it unique in your lora collections.

simonmcnair commented 8 months ago

Thanks for the input. Changing the A1111 setting fixed this. All looks good, cheers.