fix use_eos_bos

This commit is contained in:
Fangjun Kuang 2025-01-02 11:52:02 +08:00
parent 23875783d9
commit bb8cf2d9eb
3 changed files with 4 additions and 4 deletions

View File

@ -77,7 +77,7 @@ function export_onnx() {
popd
pushd data/fbank
rm -v *.json
rm -fv *.json
curl -SL -O https://huggingface.co/csukuangfj/icefall-tts-ljspeech-matcha-en-2024-10-28/resolve/main/data/cmvn.json
popd

View File

@ -130,7 +130,7 @@ jobs:
path: ./model-steps-6.onnx
- name: Upload models to huggingface
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
shell: bash
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
@ -155,7 +155,7 @@ jobs:
popd
- name: Release exported onnx models
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0' && github.event_name == 'push'
if: matrix.python-version == '3.9' && matrix.torch-version == '2.3.0'
uses: svenstaro/upload-release-action@v2
with:
file_glob: true

View File

@ -183,7 +183,7 @@ def main():
"pad_id": tokenizer.pad_id,
"model_author": "icefall",
"maintainer": "k2-fsa",
"use_eos_bos": 0,
"use_eos_bos": 1,
"dataset": "LJ Speech",
"dataset_url": "https://keithito.com/LJ-Speech-Dataset/",
"num_ode_steps": num_steps,