We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a23f30c commit ccc3296Copy full SHA for ccc3296
docs/source/en/stable_diffusion.mdx
@@ -52,6 +52,8 @@ pipeline = pipeline.to("cuda")
52
To make sure you can use the same image and improve on it, use a [`Generator`](https://pytorch.org/docs/stable/generated/torch.Generator.html) and set a seed for [reproducibility](./using-diffusers/reproducibility):
53
54
```python
55
+import torch
56
+
57
generator = torch.Generator("cuda").manual_seed(0)
58
```
59
0 commit comments