(path)
| 519 | |
| 520 | |
| 521 | def load_hf_numpy(path) -> np.ndarray: |
| 522 | base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main" |
| 523 | |
| 524 | if not path.startswith("http://") and not path.startswith("https://"): |
| 525 | path = os.path.join(base_url, urllib.parse.quote(path)) |
| 526 | |
| 527 | return load_numpy(path) |
| 528 | |
| 529 | |
| 530 | # --- pytest conf functions --- # |
no test coverage detected