Text-to-Image
Diffusers
Safetensors
StableDiffusionPipeline
stable-diffusion
Inference Endpoints
patrickvonplaten commited on
Commit
043b145
1 Parent(s): e7cda18

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
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, revision="fp16", torch_dtype=torch.float16)
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"