From 82a1453bf294fcaff886418786bbcedcb650e05c Mon Sep 17 00:00:00 2001 From: Stepheni12 Date: Thu, 1 Feb 2024 00:31:16 -0500 Subject: [PATCH] change path to pathlib as_posix --- src/diffusers/utils/testing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/utils/testing_utils.py b/src/diffusers/utils/testing_utils.py index 86e31eb688cd..a1d722bdcd95 100644 --- a/src/diffusers/utils/testing_utils.py +++ b/src/diffusers/utils/testing_utils.py @@ -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)