mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-13 12:02:21 +00:00
Add GitHub actions to run yesno.
This commit is contained in:
parent
88166c598b
commit
f65525d0a2
75
.github/workflows/run-yesno-recipe.yml
vendored
Normal file
75
.github/workflows/run-yesno-recipe.yml
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
# Copyright 2021 Fangjun Kuang (csukuangfj@gmail.com)
|
||||||
|
|
||||||
|
# See ../../LICENSE for clarification regarding multiple authors
|
||||||
|
#
|
||||||
|
# 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.
|
||||||
|
|
||||||
|
name: run-yesno-recipe
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
run-yesno-recipe:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-18.04, macos-10.15]
|
||||||
|
python-version: [3.8]
|
||||||
|
fail-fast: false
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v1
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install Python dependencies
|
||||||
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip black flake8
|
||||||
|
python3 -m pip install -U pip
|
||||||
|
python3 -m pip install k2=1.4.dev20210822+cpu.torch1.9.0 -f https://k2-fsa.org/nightly/
|
||||||
|
python3 -m pip install torchaudio==0.9.0
|
||||||
|
python3 -m pip install git+https://github.com/lhotse-speech/lhotse
|
||||||
|
git clone
|
||||||
|
|
||||||
|
- name: Download icefall
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{github.workspace}}
|
||||||
|
run: |
|
||||||
|
git clone https://github.com/k2-fsa/icefall
|
||||||
|
# remove the following block if the yesno recipe gets merged
|
||||||
|
cd icefall
|
||||||
|
git remote add kk https://github.com/csukuangfj/icefall
|
||||||
|
git fetch kk
|
||||||
|
git checkout yesno
|
||||||
|
|
||||||
|
- name: Run yesno recipe
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{github.workspace}}
|
||||||
|
run: |
|
||||||
|
export PYTHONPATH=$PWD/icefall:$PYTHONPATH
|
||||||
|
cd icefall/egs/yesno/ASR
|
||||||
|
./prepare.sh
|
||||||
|
./tdnn/train.py
|
||||||
|
./tdnn/decode.py --epoch 49
|
||||||
|
# TODO: Check that the WER is less than some value
|
Loading…
x
Reference in New Issue
Block a user