Skip to content

Commit

Permalink
Fix typo: torch_type -> torch_dtype (open-mmlab#972)
Browse files Browse the repository at this point in the history
Fix typo: torch_type -> torch_dtype
  • Loading branch information
pcuenca authored Oct 25, 2022
1 parent 2fb8faf commit 8204415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ precision while being roughly twice as fast and requiring half the amount of GPU
```python
from diffusers import StableDiffusionPipeline

pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_type=torch.float16, revision="fp16")
pipe = StableDiffusionPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16, revision="fp16")
pipe = pipe.to("cuda")

prompt = "a photo of an astronaut riding a horse on mars"
Expand Down

0 comments on commit 8204415

Please sign in to comment.