wav2vec2 demo update: support different optimizer and lr_schedular, align mdoel, update input type, test=asr

pull/2658/head
tianhao zhang 3 years ago
parent 4f6b076a0a
commit 3adb310a1c

@ -1,7 +1,19 @@
"""Vanilla Neural Network for simple tests. # Authors
Authors # * Elena Rastorgueva 2020
* Elena Rastorgueva 2020 # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
""" #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Modified from speechbrain(https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/lobes/models/VanillaNN.py).
import paddle import paddle
from paddlespeech.s2t.models.wav2vec2.modules import containers from paddlespeech.s2t.models.wav2vec2.modules import containers

@ -1,8 +1,20 @@
"""Library implementing linear transformation. # Authors
Authors # * Mirco Ravanelli 2020
* Mirco Ravanelli 2020 # * Davide Borra 2021
* Davide Borra 2021 # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
""" #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Modified from speechbrain(https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/nnet/linear.py).
import logging import logging
import paddle import paddle

Loading…
Cancel
Save