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
Training config
Hi! Thanks for sharing your work. Any chance you could also share your training settings? What res do you train on btw? I did some 512 res runs but the quality is not as crisp compared to your results.
I just used the ai-toolkit config from https://www.reddit.com/r/StableDiffusion/comments/1ueacq2/krea_2_character_lora_training_for_16_gb_vram/
I leave it at 512 and make my own trigger word. I do a lot of images as compared to others but it's not low-quality images. Also, I get many headshots not just full body and medium shots which I use many as well, a good mixture of all 3 types seems to work well.
Since I have an RTX 5070 Ti, I'd ask you how much computation time it takes to train a LoRA character with these parameters. You obviously have more CUDA cores and tensor cores than me, and I'll have to take that into account.
I have an RTX 5060 Ti (16 GB), and it takes 2.5 to 3 hours for my system to train a Krea2 LoRA.