Instructions to use hgutjh/KR4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hgutjh/KR4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("hgutjh/KR4") prompt = "UNICODE\u0000\u0000A\u0000 \u0000p\u0000o\u0000r\u0000t\u0000r\u0000a\u0000i\u0000t\u0000 \u0000o\u0000f\u0000 \u0000k\u0000r\u0000y\u0000s\u0000t\u0000e\u0000n\u0000_\u0000r\u0000i\u0000t\u0000t\u0000e\u0000r\u0000 \u0000w\u0000i\u0000t\u0000h\u0000 \u0000l\u0000o\u0000n\u0000g\u0000,\u0000 \u0000w\u0000a\u0000v\u0000y\u0000 \u0000b\u0000l\u0000a\u0000c\u0000k\u0000 \u0000h\u0000a\u0000i\u0000r\u0000,\u0000 \u0000c\u0000a\u0000p\u0000t\u0000u\u0000r\u0000e\u0000d\u0000 \u0000i\u0000n\u0000 \u0000a\u0000 \u0000c\u0000a\u0000n\u0000d\u0000i\u0000d\u0000 \u0000m\u0000o\u0000m\u0000e\u0000n\u0000t\u0000.\u0000 \u0000S\u0000h\u0000e\u0000 \u0000i\u0000s\u0000 \u0000s\u0000u\u0000r\u0000r\u0000o\u0000u\u0000n\u0000d\u0000e\u0000d\u0000 \u0000b\u0000y\u0000 \u0000a\u0000 \u0000l\u0000a\u0000r\u0000g\u0000e\u0000 \u0000v\u0000o\u0000r\u0000t\u0000e\u0000x\u0000 \u0000o\u0000f\u0000 \u0000c\u0000o\u0000l\u0000o\u0000r\u0000f\u0000u\u0000l\u0000 \u0000b\u0000u\u0000b\u0000b\u0000l\u0000e\u0000s\u0000.\u0000 \u0000T\u0000h\u0000e\u0000 \u0000w\u0000o\u0000m\u0000a\u0000n\u0000 \u0000w\u0000e\u0000a\u0000r\u0000s\u0000 \u0000a\u0000 \u0000w\u0000h\u0000i\u0000t\u0000e\u0000,\u0000 \u0000t\u0000e\u0000x\u0000t\u0000u\u0000r\u0000e\u0000d\u0000 \u0000s\u0000w\u0000e\u0000a\u0000t\u0000e\u0000r\u0000,\u0000 \u0000a\u0000n\u0000d\u0000 \u0000h\u0000e\u0000r\u0000 \u0000g\u0000a\u0000z\u0000e\u0000 \u0000i\u0000s\u0000 \u0000d\u0000i\u0000r\u0000e\u0000c\u0000t\u0000e\u0000d\u0000 \u0000u\u0000p\u0000w\u0000a\u0000r\u0000d\u0000,\u0000 \u0000i\u0000n\u0000d\u0000i\u0000c\u0000a\u0000t\u0000i\u0000n\u0000g\u0000 \u0000a\u0000 \u0000s\u0000e\u0000n\u0000s\u0000e\u0000 \u0000o\u0000f\u0000 \u0000w\u0000o\u0000n\u0000d\u0000e\u0000r\u0000 \u0000a\u0000n\u0000d\u0000 \u0000c\u0000u\u0000r\u0000i\u0000o\u0000s\u0000i\u0000t\u0000y\u0000.\u0000 \u0000T\u0000h\u0000e\u0000 \u0000b\u0000l\u0000u\u0000r\u0000r\u0000e\u0000d\u0000 \u0000b\u0000a\u0000c\u0000k\u0000g\u0000r\u0000o\u0000u\u0000n\u0000d\u0000 \u0000e\u0000m\u0000p\u0000h\u0000a\u0000s\u0000i\u0000z\u0000e\u0000s\u0000 \u0000t\u0000h\u0000e\u0000 \u0000s\u0000u\u0000b\u0000j\u0000e\u0000c\u0000t\u0000.\u0000 \u0000S\u0000o\u0000f\u0000t\u0000,\u0000 \u0000w\u0000a\u0000r\u0000m\u0000 \u0000l\u0000i\u0000g\u0000h\u0000t\u0000i\u0000n\u0000g\u0000 \u0000c\u0000r\u0000e\u0000a\u0000t\u0000e\u0000s\u0000 \u0000a\u0000 \u0000s\u0000e\u0000r\u0000e\u0000n\u0000e\u0000 \u0000a\u0000t\u0000m\u0000o\u0000s\u0000p\u0000h\u0000e\u0000r\u0000e\u0000.\u0000" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("hgutjh/KR4")
prompt = "UNICODE\u0000\u0000A\u0000 \u0000p\u0000o\u0000r\u0000t\u0000r\u0000a\u0000i\u0000t\u0000 \u0000o\u0000f\u0000 \u0000k\u0000r\u0000y\u0000s\u0000t\u0000e\u0000n\u0000_\u0000r\u0000i\u0000t\u0000t\u0000e\u0000r\u0000 \u0000w\u0000i\u0000t\u0000h\u0000 \u0000l\u0000o\u0000n\u0000g\u0000,\u0000 \u0000w\u0000a\u0000v\u0000y\u0000 \u0000b\u0000l\u0000a\u0000c\u0000k\u0000 \u0000h\u0000a\u0000i\u0000r\u0000,\u0000 \u0000c\u0000a\u0000p\u0000t\u0000u\u0000r\u0000e\u0000d\u0000 \u0000i\u0000n\u0000 \u0000a\u0000 \u0000c\u0000a\u0000n\u0000d\u0000i\u0000d\u0000 \u0000m\u0000o\u0000m\u0000e\u0000n\u0000t\u0000.\u0000 \u0000S\u0000h\u0000e\u0000 \u0000i\u0000s\u0000 \u0000s\u0000u\u0000r\u0000r\u0000o\u0000u\u0000n\u0000d\u0000e\u0000d\u0000 \u0000b\u0000y\u0000 \u0000a\u0000 \u0000l\u0000a\u0000r\u0000g\u0000e\u0000 \u0000v\u0000o\u0000r\u0000t\u0000e\u0000x\u0000 \u0000o\u0000f\u0000 \u0000c\u0000o\u0000l\u0000o\u0000r\u0000f\u0000u\u0000l\u0000 \u0000b\u0000u\u0000b\u0000b\u0000l\u0000e\u0000s\u0000.\u0000 \u0000T\u0000h\u0000e\u0000 \u0000w\u0000o\u0000m\u0000a\u0000n\u0000 \u0000w\u0000e\u0000a\u0000r\u0000s\u0000 \u0000a\u0000 \u0000w\u0000h\u0000i\u0000t\u0000e\u0000,\u0000 \u0000t\u0000e\u0000x\u0000t\u0000u\u0000r\u0000e\u0000d\u0000 \u0000s\u0000w\u0000e\u0000a\u0000t\u0000e\u0000r\u0000,\u0000 \u0000a\u0000n\u0000d\u0000 \u0000h\u0000e\u0000r\u0000 \u0000g\u0000a\u0000z\u0000e\u0000 \u0000i\u0000s\u0000 \u0000d\u0000i\u0000r\u0000e\u0000c\u0000t\u0000e\u0000d\u0000 \u0000u\u0000p\u0000w\u0000a\u0000r\u0000d\u0000,\u0000 \u0000i\u0000n\u0000d\u0000i\u0000c\u0000a\u0000t\u0000i\u0000n\u0000g\u0000 \u0000a\u0000 \u0000s\u0000e\u0000n\u0000s\u0000e\u0000 \u0000o\u0000f\u0000 \u0000w\u0000o\u0000n\u0000d\u0000e\u0000r\u0000 \u0000a\u0000n\u0000d\u0000 \u0000c\u0000u\u0000r\u0000i\u0000o\u0000s\u0000i\u0000t\u0000y\u0000.\u0000 \u0000T\u0000h\u0000e\u0000 \u0000b\u0000l\u0000u\u0000r\u0000r\u0000e\u0000d\u0000 \u0000b\u0000a\u0000c\u0000k\u0000g\u0000r\u0000o\u0000u\u0000n\u0000d\u0000 \u0000e\u0000m\u0000p\u0000h\u0000a\u0000s\u0000i\u0000z\u0000e\u0000s\u0000 \u0000t\u0000h\u0000e\u0000 \u0000s\u0000u\u0000b\u0000j\u0000e\u0000c\u0000t\u0000.\u0000 \u0000S\u0000o\u0000f\u0000t\u0000,\u0000 \u0000w\u0000a\u0000r\u0000m\u0000 \u0000l\u0000i\u0000g\u0000h\u0000t\u0000i\u0000n\u0000g\u0000 \u0000c\u0000r\u0000e\u0000a\u0000t\u0000e\u0000s\u0000 \u0000a\u0000 \u0000s\u0000e\u0000r\u0000e\u0000n\u0000e\u0000 \u0000a\u0000t\u0000m\u0000o\u0000s\u0000p\u0000h\u0000e\u0000r\u0000e\u0000.\u0000"
image = pipe(prompt).images[0]KR4

- Prompt
- UNICODEA portrait of krysten_ritter with long, wavy black hair, captured in a candid moment. She is surrounded by a large vortex of colorful bubbles. The woman wears a white, textured sweater, and her gaze is directed upward, indicating a sense of wonder and curiosity. The blurred background emphasizes the subject. Soft, warm lighting creates a serene atmosphere.
Download model
Weights for this model are available in Safetensors format.
Download them in the Files & versions tab.
- Downloads last month
- 5