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
a65ca8a0
"torchvision/git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "a75fdd4180683f7953d97ebbcc92d24682690f96"
Unverified
Commit
a65ca8a0
authored
Jan 18, 2024
by
Dhruv Nair
Committed by
GitHub
Jan 18, 2024
Browse files
Fix failing tests due to Posix Path (#6627)
update
parent
5ca062e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/diffusers/utils/testing_utils.py
src/diffusers/utils/testing_utils.py
+4
-4
No files found.
src/diffusers/utils/testing_utils.py
View file @
a65ca8a0
...
@@ -519,10 +519,10 @@ def export_to_video(video_frames: List[np.ndarray], output_video_path: str = Non
...
@@ -519,10 +519,10 @@ def export_to_video(video_frames: List[np.ndarray], output_video_path: str = Non
def
load_hf_numpy
(
path
)
->
np
.
ndarray
:
def
load_hf_numpy
(
path
)
->
np
.
ndarray
:
if
not
path
.
startswith
(
"http://
"
)
or
path
.
startswith
(
"https://"
):
base_url
=
"http
s
://
huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
path
=
Path
(
"https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
,
urllib
.
parse
.
quote
(
path
)
if
not
path
.
startswith
(
"http://"
)
and
not
path
.
startswith
(
"https://"
):
).
as_posix
(
)
path
=
os
.
path
.
join
(
base_url
,
urllib
.
parse
.
quote
(
path
)
)
return
load_numpy
(
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