From a253ecaa11b218adc67da3fcd32b1004667cd5a3 Mon Sep 17 00:00:00 2001 From: wuzewu Date: Thu, 18 Jun 2020 16:59:53 +0800 Subject: [PATCH] fix decompress bug --- paddlehub/common/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddlehub/common/downloader.py b/paddlehub/common/downloader.py index 6a225f34..68f45ea0 100644 --- a/paddlehub/common/downloader.py +++ b/paddlehub/common/downloader.py @@ -108,7 +108,7 @@ class Downloader(object): with tarfile.open(file, 'r:*') as tar: file_names = tar.getnames() - size = len(file_names) - 1 + size = len(file_names) module_dir = os.path.join(dirname, file_names[0]) for index, file_name in enumerate(file_names): if print_progress: -- GitLab