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
renzhc
diffusers_dcu
Commits
bc2ad5a6
Unverified
Commit
bc2ad5a6
authored
Aug 31, 2022
by
Patrick von Platen
Committed by
GitHub
Aug 31, 2022
Browse files
Improve README (#301)
parent
f3937bc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
README.md
README.md
+3
-0
No files found.
README.md
View file @
bc2ad5a6
...
@@ -46,6 +46,7 @@ You need to accept the model license before downloading or using the Stable Diff
...
@@ -46,6 +46,7 @@ You need to accept the model license before downloading or using the Stable Diff
```
python
```
python
# make sure you're logged in with `huggingface-cli login`
# make sure you're logged in with `huggingface-cli login`
from
torch
import
autocast
from
torch
import
autocast
import
torch
from
diffusers
import
StableDiffusionPipeline
,
LMSDiscreteScheduler
from
diffusers
import
StableDiffusionPipeline
,
LMSDiscreteScheduler
lms
=
LMSDiscreteScheduler
(
lms
=
LMSDiscreteScheduler
(
...
@@ -77,6 +78,7 @@ The `StableDiffusionImg2ImgPipeline` lets you pass a text prompt and an initial
...
@@ -77,6 +78,7 @@ The `StableDiffusionImg2ImgPipeline` lets you pass a text prompt and an initial
```
python
```
python
from
torch
import
autocast
from
torch
import
autocast
import
requests
import
requests
import
torch
from
PIL
import
Image
from
PIL
import
Image
from
io
import
BytesIO
from
io
import
BytesIO
...
@@ -116,6 +118,7 @@ The `StableDiffusionInpaintPipeline` lets you edit specific parts of an image by
...
@@ -116,6 +118,7 @@ The `StableDiffusionInpaintPipeline` lets you edit specific parts of an image by
from
io
import
BytesIO
from
io
import
BytesIO
from
torch
import
autocast
from
torch
import
autocast
import
torch
import
requests
import
requests
import
PIL
import
PIL
...
...
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