Merge pull request #910 from PaddlePaddle/eval

[asr]trainer eval when not train
pull/915/head
Hui Zhang 3 years ago committed by GitHub
commit 0674d9ec24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_export()

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_test()

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = ExportTester(config, args)
with exp.eval():
exp.setup()
exp.run_test()

@ -167,6 +167,7 @@ def check(audio_file):
def main_sp(config, args):
exp = DeepSpeech2Tester_hub(config, args)
with exp.eval():
exp.setup()
exp.run_test()

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_align()

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_export()

@ -24,6 +24,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_test()

@ -29,8 +29,8 @@ model_test_alias = {
def main_sp(config, args):
class_obj = dynamic_import(args.model_name, model_test_alias)
exp = class_obj(config, args)
with exp.eval():
exp.setup()
if args.run_mode == 'test':
exp.run_test()
elif args.run_mode == 'export':

@ -20,6 +20,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_export()

@ -24,6 +24,7 @@ from deepspeech.utils.utility import print_arguments
def main_sp(config, args):
exp = Tester(config, args)
with exp.eval():
exp.setup()
exp.run_test()

Loading…
Cancel
Save