patrickvonplaten
commited on
Commit
·
e8c88de
1
Parent(s):
5c29fe3
Update README.md
Browse files
README.md
CHANGED
@@ -50,7 +50,7 @@ model_id = "stabilityai/stable-diffusion-2"
|
|
50 |
|
51 |
# Use the Euler scheduler here instead
|
52 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
53 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler,
|
54 |
pipe = pipe.to("cuda")
|
55 |
|
56 |
prompt = "a photo of an astronaut riding a horse on mars"
|
|
|
50 |
|
51 |
# Use the Euler scheduler here instead
|
52 |
scheduler = EulerDiscreteScheduler.from_pretrained(model_id, subfolder="scheduler")
|
53 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, scheduler=scheduler, torch_dtype=torch.float16)
|
54 |
pipe = pipe.to("cuda")
|
55 |
|
56 |
prompt = "a photo of an astronaut riding a horse on mars"
|