MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / load_hf_numpy

Function load_hf_numpy

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

Source from the content-addressed store, hash-verified

617
618
619def 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 --- #

Callers 8

get_sd_imageMethod · 0.90
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