MCPcopy Create free account
hub / github.com/AlayaLab/Hive / load_hf_numpy

Function load_hf_numpy

models/flowsep/diffusers/utils/testing_utils.py:318–324  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

316
317
318def 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 --- #

Callers

nothing calls this directly

Calls 1

load_numpyFunction · 0.85

Tested by

no test coverage detected