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
d8572f20
Unverified
Commit
d8572f20
authored
Sep 27, 2022
by
Anton Lozhkov
Committed by
GitHub
Sep 27, 2022
Browse files
Fix onnx tensor format (#654)
fix np onnx
parent
c0c98df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_onnx.py
...elines/stable_diffusion/pipeline_stable_diffusion_onnx.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_onnx.py
View file @
d8572f20
...
...
@@ -73,7 +73,7 @@ class StableDiffusionOnnxPipeline(DiffusionPipeline):
prompt
,
padding
=
"max_length"
,
max_length
=
self
.
tokenizer
.
model_max_length
,
return_tensors
=
"p
t
"
,
return_tensors
=
"
n
p"
,
)
text_input_ids
=
text_inputs
.
input_ids
...
...
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