File size: 2,412 Bytes
fe48c57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71122e4
fe48c57
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a00ffb6
fe48c57
a00ffb6
 
4349d7c
fe48c57
264e165
a00ffb6
 
 
 
5cacdb5
a00ffb6
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
tags:
- text-to-image
- lora
- diffusers
- template:diffusion-lora
widget:
- text: a boy in Halloween costumes, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/6e4fc324ef43cc11435f1e0419cbd5b13e38c9f8f9289578ffa75282.jpg
- text: a cat, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/2a3e77a3bf8abf4e15a9d02f05afc6064b9874ace8d58eb8928d3fd9.jpg
- text: Halloween Lanterns on the table, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/201dd797dcadcb680d2ea4004910a6430efaf7620268a57584fb77d1.jpg
- text: Eiffel Tower, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/fed3ec00baa80515fa20e37d373b82bcbebdb11e2270217f24b25ea1.jpg
- text: a Witch, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/c717a319c28471f0973c3d5d2e4c881e79d1bd9260691a07fee4eda8.jpg
- text: a vampire, moon, Linear red light
  parameters:
    negative_prompt: (lowres, low quality, worst quality)
  output:
    url: images/7b9a2e73e1dae5f3224dd4224e4aa984f29a60133ba80a238dfe3966.jpg
base_model: stabilityai/stable-diffusion-3.5-large
instance_prompt: Linear red light
license: other
license_name: stabilityai-ai-community
license_link: >-
  https://huggingface.co/stabilityai/stable-diffusion-3-medium/blob/main/LICENSE.md
---
# SD3.5-LoRA-Linear-Red-Light

<Gallery />


## Trigger words

You should use `Linear red light` to trigger the image generation.


## Inference

```python
import torch
from diffusers import StableDiffusion3Pipeline # pip install diffusers>=0.31.0

pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large", torch_dtype=torch.bfloat16)
pipe.load_lora_weights("Shakker-Labs/SD3.5-LoRA-Linear-Red-Light", weight_name="SD35-lora-Linear-Red-Light.safetensors")
pipe.fuse_lora(lora_scale=1.0)
pipe.to("cuda")

prompt = "a spider-man, Linear red light"
negative_prompt = "(lowres, low quality, worst quality)"

image = pipe(prompt=prompt,
             negative_prompt=negative_prompt
             num_inference_steps=24, 
             guidance_scale=4.0,
             width=960, height=1280,
            ).images[0]
image.save(f"toy_example.jpg")
```