patrickvonplaten
commited on
Commit
•
043b145
1
Parent(s):
e7cda18
Update README.md
Browse files
README.md
CHANGED
@@ -48,7 +48,7 @@ import torch
|
|
48 |
model_id = "stabilityai/stable-diffusion-2-1-base"
|
49 |
|
50 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
51 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler,
|
52 |
pipe = pipe.to("cuda")
|
53 |
|
54 |
prompt = "a photo of an astronaut riding a horse on mars"
|
|
|
48 |
model_id = "stabilityai/stable-diffusion-2-1-base"
|
49 |
|
50 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
51 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
|
52 |
pipe = pipe.to("cuda")
|
53 |
|
54 |
prompt = "a photo of an astronaut riding a horse on mars"
|