MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / load_hf_numpy

Function load_hf_numpy

src/diffusers/utils/testing_utils.py:521–527  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

519
520
521def 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 --- #

Callers 7

get_latentsMethod · 0.90
get_latentsMethod · 0.90
get_sd_imageMethod · 0.90
get_sd_imageMethod · 0.90
get_sd_imageMethod · 0.90

Calls 1

load_numpyFunction · 0.85

Tested by

no test coverage detected