Skip to content

Commit

Permalink
Change path to posix (testing_utils.py) (#6803)
Browse files Browse the repository at this point in the history
change path to pathlib as_posix

Co-authored-by: Sayak Paul <[email protected]>
  • Loading branch information
Stepheni12 and sayakpaul committed Feb 3, 2024
1 parent 15ed53d commit 02338c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/utils/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = os.path.join(base_url, urllib.parse.quote(path))
path = Path(base_url, urllib.parse.quote(path)).as_posix()

return load_numpy(path)

Expand Down

0 comments on commit 02338c9

Please sign in to comment.