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

Function download_data

examples/gan/utils.py:48–54  ·  view source on GitHub ↗
(gzfile, url)

Source from the content-addressed store, hash-verified

46 return traindata, trainlabel, validdata, validlabel, testdata, testlabel
47
48def download_data(gzfile, url):
49 if os.path.exists(gzfile):
50 print('Downloaded already!')
51 sys.exit(0)
52 print('Downloading data %s' % (url))
53 ul_request.urlretrieve(url, gzfile)
54 print('Finished!')
55
56def show_images(filepath):
57 with open(filepath, 'rb') as f:

Callers 1

download_mnist.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected