roygan commited on
Commit
1f0b8b4
1 Parent(s): 2ac940d
Files changed (1) hide show
  1. README.md +1 -0
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')