Views
No views yet
loona from helluva boss.5.50.020None421024x10241{
2 "bypass_mode": true,
3 "algo": "lokr",
4 "multiplier": 1.0,
5 "full_matrix": true,
6 "linear_dim": 10000,
7 "linear_alpha": 1,
8 "factor": 12,
9 "apply_preset": {
10 "target_module": [
11 "JointTransformerBlock"
12 ],
13 "module_algo_map": {
14 "FeedForward": {
15 "factor": 1
16 },
17 "JointTransformerBlock": {
18 "factor": 2
19 }
20 }
21 }
22}1import torch
2from diffusers import DiffusionPipeline
3from lycoris import create_lycoris_from_weights
4
5model_id = 'stabilityai/stable-diffusion-3.5-medium'
6adapter_id = 'pytorch_lora_weights.safetensors' # you will have to download this manually
7lora_scale = 1.0
8wrapper, _ = create_lycoris_from_weights(lora_scale, adapter_id, pipeline.transformer)
9wrapper.merge_to()
10
11prompt = "loona from helluva boss."
12negative_prompt = ''
13pipeline.to('cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu')
14image = pipeline(
15 prompt=prompt,
16 negative_prompt=negative_prompt,
17 num_inference_steps=20,
18 generator=torch.Generator(device='cuda' if torch.cuda.is_available() else 'mps' if torch.backends.mps.is_available() else 'cpu').manual_seed(1641421826),
19 width=1024,
20 height=1024,
21 guidance_scale=5.5,
22).images[0]
23image.save("output.png", format="PNG")