MCPcopy Create free account
hub / github.com/cloud-annotations/cloud-annotations / download_model

Function download_model

wml/start_training_run.py:147–154  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

145)
146
147def download_model(files):
148 for item in files:
149 local_path = '/'.join(item.key.split('/')[1:])
150 print(local_path)
151 if item.key.endswith('/') and not os.path.exists(local_path):
152 os.makedirs(local_path)
153 else:
154 cos.Object(args.result_bucket_name, item.key).download_file(local_path)
155
156download_model(model_web)
157download_model(model_ios)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected