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
OpenDAS
diffusers
Commits
723e8f6b
Unverified
Commit
723e8f6b
authored
Dec 17, 2022
by
Peter
Committed by
GitHub
Dec 17, 2022
Browse files
Fix ONNX img2img preprocessing (#1736)
Co-authored-by:
Peter
<
peterto@users.noreply.github.com
>
parent
c53a8506
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
...table_diffusion/pipeline_onnx_stable_diffusion_img2img.py
+3
-0
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
View file @
723e8f6b
...
...
@@ -332,6 +332,9 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
f
"
{
type
(
callback_steps
)
}
."
)
if
generator
is
None
:
generator
=
np
.
random
# set timesteps
self
.
scheduler
.
set_timesteps
(
num_inference_steps
)
...
...
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