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
16172c1c
Unverified
Commit
16172c1c
authored
Aug 29, 2022
by
Pulkit Mishra
Committed by
GitHub
Aug 29, 2022
Browse files
Adds missing torch imports to inpainting and image_to_image example (#265)
adds missing torch import to example
parent
28f73052
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
examples/inference/readme.md
examples/inference/readme.md
+2
-0
No files found.
examples/inference/readme.md
View file @
16172c1c
...
@@ -16,6 +16,7 @@ The `image_to_image.py` script implements `StableDiffusionImg2ImgPipeline`. It l
...
@@ -16,6 +16,7 @@ The `image_to_image.py` script implements `StableDiffusionImg2ImgPipeline`. It l
```
python
```
python
import
torch
from
torch
import
autocast
from
torch
import
autocast
import
requests
import
requests
from
PIL
import
Image
from
PIL
import
Image
...
@@ -61,6 +62,7 @@ The `inpainting.py` script implements `StableDiffusionInpaintingPipeline`. This
...
@@ -61,6 +62,7 @@ The `inpainting.py` script implements `StableDiffusionInpaintingPipeline`. This
### How to use it
### How to use it
```
python
```
python
import
torch
from
io
import
BytesIO
from
io
import
BytesIO
from
torch
import
autocast
from
torch
import
autocast
...
...
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