fix fp16
Browse files
README.md
CHANGED
|
@@ -82,6 +82,7 @@ image.save("飞流.png")
|
|
| 82 |
```py
|
| 83 |
# !pip install git+https://github.com/huggingface/accelerate
|
| 84 |
import torch
|
|
|
|
| 85 |
torch.backends.cudnn.benchmark = True
|
| 86 |
pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1", torch_dtype=torch.float16)
|
| 87 |
pipe.to('cuda')
|
|
|
|
| 82 |
```py
|
| 83 |
# !pip install git+https://github.com/huggingface/accelerate
|
| 84 |
import torch
|
| 85 |
+
from diffusers import StableDiffusionPipeline
|
| 86 |
torch.backends.cudnn.benchmark = True
|
| 87 |
pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-v0.1", torch_dtype=torch.float16)
|
| 88 |
pipe.to('cuda')
|