MCPcopy Create free account
hub / github.com/apache/singa / download_model

Function download_model

examples/onnx/utils.py:28–31  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

26
27
28def download_model(url):
29 download_dir = '/tmp/'
30 with tarfile.open(check_exist_or_download(url), 'r') as t:
31 t.extractall(path=download_dir)
32
33
34def load_dataset(test_data_dir):

Callers 15

resnet18.pyFile · 0.90
vgg16.pyFile · 0.90
squeezenet.pyFile · 0.90
shufflenetv1.pyFile · 0.90
mobilenet.pyFile · 0.90
superresolution.pyFile · 0.90
tiny_yolov2.pyFile · 0.90
shufflenetv2.pyFile · 0.90
fer_emotion.pyFile · 0.90
arcface.pyFile · 0.90
densenet121.pyFile · 0.90
vgg19.pyFile · 0.90

Calls 1

check_exist_or_downloadFunction · 0.70

Tested by

no test coverage detected