|
|
@ -24,7 +24,6 @@ from paddle.static import InputSpec
|
|
|
|
from timer import timer
|
|
|
|
from timer import timer
|
|
|
|
from yacs.config import CfgNode
|
|
|
|
from yacs.config import CfgNode
|
|
|
|
|
|
|
|
|
|
|
|
from paddlespeech.s2t.utils.dynamic_import import dynamic_import
|
|
|
|
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import denorm
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import denorm
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_chunks
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_chunks
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_frontend
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import get_frontend
|
|
|
@ -33,6 +32,7 @@ from paddlespeech.t2s.exps.syn_utils import get_voc_inference
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import model_alias
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import model_alias
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import voc_to_static
|
|
|
|
from paddlespeech.t2s.exps.syn_utils import voc_to_static
|
|
|
|
from paddlespeech.t2s.utils import str2bool
|
|
|
|
from paddlespeech.t2s.utils import str2bool
|
|
|
|
|
|
|
|
from paddlespeech.utils.dynamic_import import dynamic_import
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def evaluate(args):
|
|
|
|
def evaluate(args):
|
|
|
@ -212,10 +212,7 @@ def parse_args():
|
|
|
|
choices=['fastspeech2_csmsc'],
|
|
|
|
choices=['fastspeech2_csmsc'],
|
|
|
|
help='Choose acoustic model type of tts task.')
|
|
|
|
help='Choose acoustic model type of tts task.')
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'--am_config',
|
|
|
|
'--am_config', type=str, default=None, help='Config of acoustic model.')
|
|
|
|
type=str,
|
|
|
|
|
|
|
|
default=None,
|
|
|
|
|
|
|
|
help='Config of acoustic model.')
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'--am_ckpt',
|
|
|
|
'--am_ckpt',
|
|
|
|
type=str,
|
|
|
|
type=str,
|
|
|
@ -245,10 +242,7 @@ def parse_args():
|
|
|
|
],
|
|
|
|
],
|
|
|
|
help='Choose vocoder type of tts task.')
|
|
|
|
help='Choose vocoder type of tts task.')
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'--voc_config',
|
|
|
|
'--voc_config', type=str, default=None, help='Config of voc.')
|
|
|
|
type=str,
|
|
|
|
|
|
|
|
default=None,
|
|
|
|
|
|
|
|
help='Config of voc.')
|
|
|
|
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|
'--voc_ckpt', type=str, default=None, help='Checkpoint file of voc.')
|
|
|
|
'--voc_ckpt', type=str, default=None, help='Checkpoint file of voc.')
|
|
|
|
parser.add_argument(
|
|
|
|
parser.add_argument(
|
|
|
|