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
5b1b80a5
Unverified
Commit
5b1b80a5
authored
Jan 27, 2024
by
Stephen
Committed by
GitHub
Jan 28, 2024
Browse files
Change os.path to pathlib Path (#6737)
Change os.path to pathlib
parent
8581d9bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/onnx_utils.py
src/diffusers/pipelines/onnx_utils.py
+1
-1
No files found.
src/diffusers/pipelines/onnx_utils.py
View file @
5b1b80a5
...
...
@@ -172,7 +172,7 @@ class OnnxRuntimeModel:
# load model from local directory
if
os
.
path
.
isdir
(
model_id
):
model
=
OnnxRuntimeModel
.
load_model
(
os
.
path
.
join
(
model_id
,
model_file_name
),
provider
=
provider
,
sess_options
=
sess_options
Path
(
model_id
,
model_file_name
)
.
as_posix
()
,
provider
=
provider
,
sess_options
=
sess_options
)
kwargs
[
"model_save_dir"
]
=
Path
(
model_id
)
# load model from hub
...
...
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