Skip to content

Commit fdf55b1

Browse files
authored
Fix posix path issue in testing utils (huggingface#6849)
update
1 parent c6f8c31 commit fdf55b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/testing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def load_hf_numpy(path) -> np.ndarray:
522522
base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main"
523523

524524
if not path.startswith("http://") and not path.startswith("https://"):
525-
path = Path(base_url, urllib.parse.quote(path)).as_posix()
525+
path = os.path.join(base_url, urllib.parse.quote(path))
526526

527527
return load_numpy(path)
528528

0 commit comments

Comments
 (0)