Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zwq330205812
stablediffusion_pytorch
Commits
7f762fd0
"test/transforms_v2_kernel_infos.py" did not exist on "ea37cd387c089d12a450888ee8e4460a12880379"
Commit
7f762fd0
authored
Aug 22, 2023
by
lijian6
Browse files
Modify README.md
parent
1e2eee38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
README.md
README.md
+5
-3
No files found.
README.md
View file @
7f762fd0
...
...
@@ -23,13 +23,14 @@ conda activate ldm
```
## 下载Stable Diffusion模型
```
### checkpoint version
git lfs install
git clone https://huggingface.co/CompVis/stable-diffusion-v-1-1-original
### diffusers version
git clone https://huggingface.co/CompVis/stable-diffusion-v1-1
```
## 运行示例:
...
...
@@ -84,14 +85,15 @@ optional arguments:
### 运行Diffusers示例:
Diffusers.py
:
下载diffusers, 使用
Diffusers.py
运行:
```
py
# make sure you're logged in with `huggingface-cli login`
import
torch
from
torch
import
autocast
from
diffusers
import
StableDiffusionPipeline
pipe
=
StableDiffusionPipeline
.
from_pretrained
(
"
CompVis/
stable-diffusion-v1-4"
,
"stable-diffusion-v1-4"
,
use_auth_token
=
True
).
to
(
"cuda"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment