(path)
| 316 | |
| 317 | |
| 318 | def load_hf_numpy(path) -> np.ndarray: |
| 319 | if not path.startswith("http://") or path.startswith("https://"): |
| 320 | path = os.path.join( |
| 321 | "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main", urllib.parse.quote(path) |
| 322 | ) |
| 323 | |
| 324 | return load_numpy(path) |
| 325 | |
| 326 | |
| 327 | # --- pytest conf functions --- # |
nothing calls this directly
no test coverage detected