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
fdf55b1f
Unverified
Commit
fdf55b1f
authored
Feb 05, 2024
by
Dhruv Nair
Committed by
GitHub
Feb 05, 2024
Browse files
Fix posix path issue in testing utils (#6849)
update
parent
c6f8c310
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/testing_utils.py
src/diffusers/utils/testing_utils.py
+1
-1
No files found.
src/diffusers/utils/testing_utils.py
View file @
fdf55b1f
...
...
@@ -522,7 +522,7 @@ def load_hf_numpy(path) -> np.ndarray:
base_url
=
"https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
if
not
path
.
startswith
(
"http://"
)
and
not
path
.
startswith
(
"https://"
):
path
=
Path
(
base_url
,
urllib
.
parse
.
quote
(
path
))
.
as_posix
()
path
=
os
.
path
.
join
(
base_url
,
urllib
.
parse
.
quote
(
path
))
return
load_numpy
(
path
)
...
...
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