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
7d0ba592
Unverified
Commit
7d0ba592
authored
Oct 03, 2022
by
Krishna Penukonda
Committed by
GitHub
Oct 03, 2022
Browse files
Fix type annotations on StableDiffusionPipeline.__call__ (#682)
Fixed type annotations on StableDiffusionPipeline::__call__
parent
249b36cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+5
-5
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
7d0ba592
...
@@ -113,11 +113,11 @@ class StableDiffusionPipeline(DiffusionPipeline):
...
@@ -113,11 +113,11 @@ class StableDiffusionPipeline(DiffusionPipeline):
def
__call__
(
def
__call__
(
self
,
self
,
prompt
:
Union
[
str
,
List
[
str
]],
prompt
:
Union
[
str
,
List
[
str
]],
height
:
Optional
[
int
]
=
512
,
height
:
int
=
512
,
width
:
Optional
[
int
]
=
512
,
width
:
int
=
512
,
num_inference_steps
:
Optional
[
int
]
=
50
,
num_inference_steps
:
int
=
50
,
guidance_scale
:
Optional
[
float
]
=
7.5
,
guidance_scale
:
float
=
7.5
,
eta
:
Optional
[
float
]
=
0.0
,
eta
:
float
=
0.0
,
generator
:
Optional
[
torch
.
Generator
]
=
None
,
generator
:
Optional
[
torch
.
Generator
]
=
None
,
latents
:
Optional
[
torch
.
FloatTensor
]
=
None
,
latents
:
Optional
[
torch
.
FloatTensor
]
=
None
,
output_type
:
Optional
[
str
]
=
"pil"
,
output_type
:
Optional
[
str
]
=
"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