StableStudio icon indicating copy to clipboard operation
StableStudio copied to clipboard

webui-plugin improvment: group generated images by prompt, lora/hypernetworks/embedding support

Open jtydhr88 opened this issue 2 years ago • 7 comments

previously, only create one group for all generated images. However they should be grouped by prompt: image

jtydhr88 avatar May 25 '23 02:05 jtydhr88

Regarding extra network, I am using style to place the list, I am not sure it is the right place.

About LoRA, currently this is a bug in webui with api mode, see more detail here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9274, until today, this issue still does not get fixed, that means, if the user want to apply LoRA, they have to mofidy webui.py by theirselves: modules.script_callbacks.before_ui_callback() image

jtydhr88 avatar May 25 '23 16:05 jtydhr88

Thanks for working on this - looking forward to test this out.

harrywang avatar May 25 '23 20:05 harrywang

update, a1111 updated webui to latest 1.3.0, which fixed the lora api issue, the list of loras api provided by default now, no need to change source code

jtydhr88 avatar May 28 '23 16:05 jtydhr88

@jtydhr88 how can we use lora? use the <lora:lora_name:0.8> syntax? I don't see a place to see the lora models in the frontend. Thanks!

harrywang avatar Jun 02 '23 20:06 harrywang

Hey @harrywang you can go to settings, and choose style type from lora or hypernetwork, then you can go back and choose your Lora from style drop-down, currently I am using the style as Lora holder, I am not sure it is right place, and it only support to select one Lora at once time. If we want support multi-extras, we have to change StableStudio deep code. Right now I hardcode the weight to 1, we may need a slider to allow to change weight to other value. This PR is still pending for review.

jtydhr88 avatar Jun 03 '23 01:06 jtydhr88

Hey @harrywang you can go to settings, and choose style type from lora or hypernetwork, then you can go back and choose your Lora from style drop-down, currently I am using the style as Lora holder, I am not sure it is right place, and it only support to select one Lora at once time. If we want support multi-extras, we have to change StableStudio deep code. Right now I hardcode the weight to 1, we may need a slider to allow to change weight to other value. This PR is still pending for review.

Thanks a lot! This is a great starting point for using lora - we will need to able to adjust weights and use multiple loras eventully :).

harrywang avatar Jun 03 '23 13:06 harrywang

Hey @harrywang you can go to settings, and choose style type from lora or hypernetwork, then you can go back and choose your Lora from style drop-down, currently I am using the style as Lora holder, I am not sure it is right place, and it only support to select one Lora at once time. If we want support multi-extras, we have to change StableStudio deep code. Right now I hardcode the weight to 1, we may need a slider to allow to change weight to other value. This PR is still pending for review.

Thanks a lot! This is a great starting point for using lora - we will need to able to adjust weights and use multiple loras eventully :).

Hi, I found this style in the txt2img, image what is the format of import lora to style? something like this? "<lora: 简约扁平风格卡通背景_v1.0>"

Louis24 avatar Jul 26 '24 12:07 Louis24