MCPcopy Create free account
hub / github.com/OUCMachineLearning/OUCML / unzip

Function unzip

GAN/datadownloader/download.py:73–78  ·  view source on GitHub ↗
(filepath)

Source from the content-addressed store, hash-verified

71 f.write(chunk)
72
73def unzip(filepath):
74 print("Extracting: " + filepath)
75 dirpath = os.path.dirname(filepath)
76 with zipfile.ZipFile(filepath) as zf:
77 zf.extractall(dirpath)
78 os.remove(filepath)
79
80def download_celeb_a(dirpath):
81 data_dir = 'celebA'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected