Merge pull request #1343 from Jackwaterveg/fix

[ASR] Fix some bugs
pull/1347/head
Jackwaterveg 3 years ago committed by GitHub
commit 26524031d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -524,10 +524,10 @@ class U2Tester(U2Trainer):
List[paddle.static.InputSpec]: input spec.
"""
from paddlespeech.s2t.models.u2 import U2InferModel
infer_model = U2InferModel.from_pretrained(self.train_loader,
infer_model = U2InferModel.from_pretrained(self.test_loader,
self.config.clone(),
self.args.checkpoint_path)
feat_dim = self.train_loader.feat_dim
feat_dim = self.test_loader.feat_dim
input_spec = [
paddle.static.InputSpec(shape=[1, None, feat_dim],
dtype='float32'), # audio, [B,T,D]

Loading…
Cancel
Save