From 5e20dfd4fb67eb10d64baede976c06314c5e8d37 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Tue, 1 Aug 2017 17:30:30 +0800 Subject: [PATCH] change the wget method in run.sh of deep_speech2 --- datasets/librispeech/librispeech.py | 4 ++-- requirements.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/datasets/librispeech/librispeech.py b/datasets/librispeech/librispeech.py index 87e52ae4..7e941f0e 100644 --- a/datasets/librispeech/librispeech.py +++ b/datasets/librispeech/librispeech.py @@ -11,7 +11,7 @@ from __future__ import print_function import distutils.util import os -import wget +import sys import tarfile import argparse import soundfile @@ -66,7 +66,7 @@ def download(url, md5sum, target_dir): filepath = os.path.join(target_dir, url.split("/")[-1]) if not (os.path.exists(filepath) and md5file(filepath) == md5sum): print("Downloading %s ..." % url) - wget.download(url, target_dir) + os.system("wget -c " + url + " -P " + target_dir) print("\nMD5 Chesksum %s ..." % filepath) if not md5file(filepath) == md5sum: raise RuntimeError("MD5 checksum failed.") diff --git a/requirements.txt b/requirements.txt index eb602259..131f75ff 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ -wget==3.2 scipy==0.13.1 resampy==0.1.5 SoundFile==0.9.0.post1