"examples/vscode:/vscode.git/clone" did not exist on "14ab462fd878d034df9112865acd9f53458d6177"
Unverified Commit a65ca8a0 authored by Dhruv Nair's avatar Dhruv Nair Committed by GitHub
Browse files

Fix failing tests due to Posix Path (#6627)

update
parent 5ca062e0
......@@ -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:
if not path.startswith("http://") or path.startswith("https://"):
path = Path(
"https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main", urllib.parse.quote(path)
).as_posix()
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))
return load_numpy(path)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment