hyoungwoncho
commited on
Commit
•
5193ae7
1
Parent(s):
30c94b4
Update README.md
Browse files
README.md
CHANGED
@@ -27,11 +27,14 @@ from diffusers import StableDiffusionPipeline
|
|
27 |
pipe = StableDiffusionPipeline.from_pretrained(
|
28 |
"runwayml/stable-diffusion-v1-5",
|
29 |
custom_pipeline="hyoungwoncho/sd_perturbed_attention_guidance",
|
30 |
-
torch_dtype=torch.float16
|
|
|
31 |
)
|
32 |
|
33 |
device="cuda"
|
34 |
pipe = pipe.to(device)
|
|
|
|
|
35 |
```
|
36 |
|
37 |
Sampling with PAG:
|
|
|
27 |
pipe = StableDiffusionPipeline.from_pretrained(
|
28 |
"runwayml/stable-diffusion-v1-5",
|
29 |
custom_pipeline="hyoungwoncho/sd_perturbed_attention_guidance",
|
30 |
+
torch_dtype=torch.float16,
|
31 |
+
safety_checker=None
|
32 |
)
|
33 |
|
34 |
device="cuda"
|
35 |
pipe = pipe.to(device)
|
36 |
+
|
37 |
+
prompts = ["a corgi"]
|
38 |
```
|
39 |
|
40 |
Sampling with PAG:
|