Generating an image using Flux LoRAs
Some Flux LoRA fine-tunes need to be activated using a trigger phrases that can be used in the prompt and can typically be found in the model cards. For example with: https://huggingface.co/multimodalart/flux-tarot-v1, you should usein the style of TOK a trtcrd tarot style to trigger the image generation.
You can add up to 2 LoRAs per image to combine the style from the different fine-tunes. The scale parameter allows you to specify the strength of each LoRA. Typically values of 0.3-1.2 will produce good results.
Acceptable LoRA URL formats
You can point to any URL that has a.safetensors file with a valid Flux LoRA fine-tune.
*Note: the HuggingFace web page for a file (https://huggingface.co/XLabs-AI/flux-lora-collection/blob/main/anime_lora.safetensors) will NOT work
If the safetensors file has incompatible keys, you’ll get the message ” has unused keys <keys…>”. This will happen if you pass a finetune of a non-flux model or an otherwise invalid file.
Examples
The example below produces a realistic tarot card of a panda:Python
