MCPcopy Index your code
hub / github.com/huggingface/diffusers / download

Function download

scripts/convert_dance_diffusion_to_diffusers.py:76–85  ·  view source on GitHub ↗
(model_name)

Source from the content-addressed store, hash-verified

74
75
76def download(model_name):
77 url = MODELS_MAP[model_name]["url"]
78 r = requests.get(url, stream=True, timeout=DIFFUSERS_REQUEST_TIMEOUT)
79
80 local_filename = f"./{model_name}.ckpt"
81 with open(local_filename, "wb") as fp:
82 for chunk in r.iter_content(chunk_size=8192):
83 fp.write(chunk)
84
85 return local_filename
86
87
88DOWN_NUM_TO_LAYER = {

Callers 1

mainFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…