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

Function download

diffusers/scripts/convert_dance_diffusion_to_diffusers.py:75–84  ·  view source on GitHub ↗
(model_name)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected