|
|
@ -6,6 +6,7 @@ from __future__ import print_function
|
|
|
|
import argparse
|
|
|
|
import argparse
|
|
|
|
import gzip
|
|
|
|
import gzip
|
|
|
|
import distutils.util
|
|
|
|
import distutils.util
|
|
|
|
|
|
|
|
import multiprocessing
|
|
|
|
import paddle.v2 as paddle
|
|
|
|
import paddle.v2 as paddle
|
|
|
|
from data_utils.data import DataGenerator
|
|
|
|
from data_utils.data import DataGenerator
|
|
|
|
from model import deep_speech2
|
|
|
|
from model import deep_speech2
|
|
|
@ -40,7 +41,7 @@ parser.add_argument(
|
|
|
|
help="Use gpu or not. (default: %(default)s)")
|
|
|
|
help="Use gpu or not. (default: %(default)s)")
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
"--num_threads_data",
|
|
|
|
"--num_threads_data",
|
|
|
|
default=12,
|
|
|
|
default=multiprocessing.cpu_count(),
|
|
|
|
type=int,
|
|
|
|
type=int,
|
|
|
|
help="Number of cpu threads for preprocessing data. (default: %(default)s)")
|
|
|
|
help="Number of cpu threads for preprocessing data. (default: %(default)s)")
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|