Fooocus icon indicating copy to clipboard operation
Fooocus copied to clipboard

[Feature Request]: Prompt embedded LoRAs

Open Cruxial0 opened this issue 1 year ago • 1 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?

Similar to how A1111 handles LoRAs by default, I believe there should be an option to embed LoRAs in the prompt by using the following structure:

<LORA_NAME:WEIGHT>

The current workflow works well, but has a few limitations, namely being able to use wildcards and LoRAs together for more dynamic prompts. Additionally, this feature already exists for embeddings, so I reckon adding it for LoRAs should be trivial.

Proposed workflow

  1. Enter LoRAs in the prompt using the <LORA_NAME:WEIGHT> structure
  2. Generate images, and LoRAs are loaded for each iteration

Additional information

No response

Cruxial0 avatar Mar 18 '24 18:03 Cruxial0

This is already implemented in PR https://github.com/lllyasviel/Fooocus/pull/2323 (but not yet merged), feel free to check it out.

mashb1t avatar Mar 18 '24 20:03 mashb1t

https://github.com/lllyasviel/Fooocus/pull/2323/ has been merged into develop

mashb1t avatar May 18 '24 15:05 mashb1t