(path)
| 617 | |
| 618 | |
| 619 | def load_hf_numpy(path) -> np.ndarray: |
| 620 | base_url = "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main" |
| 621 | |
| 622 | if not path.startswith("http://") and not path.startswith("https://"): |
| 623 | path = os.path.join(base_url, urllib.parse.quote(path)) |
| 624 | |
| 625 | return load_numpy(path) |
| 626 | |
| 627 | |
| 628 | # --- pytest conf functions --- # |
no test coverage detected