Instructions to use pmczip/Krea2Raw_Loras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use pmczip/Krea2Raw_Loras with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("krea/Krea-2-Raw", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("pmczip/Krea2Raw_Loras") prompt = "a high-resolution side-view photograph featuring 4j133 with long, wavy dark brown hair, styled in loose waves, she has a pleasant, inviting smile and striking brown eyes, she is wearing a black strapless bandeau top, and a pair of light blue jeans that are pulled down to her waist, revealing her midriff, her outfit is accessorized with large gold hoop earrings and a black belt with a silver buckle, adding a touch of sophistication, the background is a solid, bright pink, which contrasts nicely with her dark hair and outfit, making her the focal point of the image, the lighting is soft and even, highlighting her smooth skin, the overall mood of casual and relaxed, with a focus on the subject's confident demeanor" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
I'd like to ask a question about training LoRA
I've run into an issue with a LoRA trained on Krea 2. I noticed that even without tagging the training images, the LoRA still takes effect when loaded—in fact, it works even without a trigger word.
For example, when I train a LoRA of a specific woman, whether the images were tagged or not, generating images with the LoRA loaded still applies the effect regardless of whether I enter the trigger word. On top of that, all female characters end up taking on the features of this LoRA. Why is this happening? This doesn't happen with Qwen Image or ZImage.
Yes, it will affect people especially if you have woman or female in the prompt. It sometime affects men as well if one is in the scene, giving the face of the subject. Not sure what can be done to stop that other than disabling the LoRA.
Yes, it will affect people especially if you have woman or female in the prompt. It sometime affects men as well if one is in the scene, giving the face of the subject. Not sure what can be done to stop that other than disabling the LoRA.
Sure enough, my tests confirmed that male characters are indeed affected as well, and it even leaks into the overall style. But when I tested LoRAs released by Fal, they don't have this issue at all. It's truly baffling.