diff --git a/python/paddle/v2/dataset/common.py b/python/paddle/v2/dataset/common.py index 0944fe973d5b908ce8b45d95b679191b9bda5262..3021b68ddb02ecaa874e21681796c0912ad4cc06 100644 --- a/python/paddle/v2/dataset/common.py +++ b/python/paddle/v2/dataset/common.py @@ -36,13 +36,13 @@ def md5file(fname): def download(url, module_name, md5sum): - print "downloading %s" % url dirname = os.path.join(DATA_HOME, module_name) if not os.path.exists(dirname): os.makedirs(dirname) filename = os.path.join(dirname, url.split('/')[-1]) if not (os.path.exists(filename) and md5file(filename) == md5sum): + print "Cache file %s not found, downloading %s" % (filename, url) r = requests.get(url, stream=True) total_length = r.headers.get('content-length')