mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-03 22:24:19 +00:00
load checkpoint to decode
This commit is contained in:
parent
e81545714a
commit
5f399dc780
8
egs/aishell/ASR/decode.sh
Normal file
8
egs/aishell/ASR/decode.sh
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
#export CUDA_VISIBLE_DEVICES="2,3"
|
||||
#pip install -r seamlessm4t/requirements.txt
|
||||
#pip install k2==1.24.3.dev20230524+cuda11.8.torch2.0.1 -f https://k2-fsa.github.io/k2/cuda.html
|
||||
export PYTHONPATH=$PYTHONPATH:/lustre/fsw/sa/yuekaiz/asr/icefall
|
||||
export PYTHONPATH=$PYTHONPATH:/lustre/fsw/sa/yuekaiz/asr/seamless_communication/src
|
||||
export TORCH_HOME=/lustre/fsw/sa/yuekaiz/asr/hub
|
||||
python3 seamlessm4t/decode.py --epoch 3 --exp-dir seamlessm4t/exp
|
@ -5,4 +5,4 @@ pip install k2==1.24.3.dev20230524+cuda11.8.torch2.0.1 -f https://k2-fsa.github.
|
||||
export PYTHONPATH=$PYTHONPATH:/lustre/fsw/sa/yuekaiz/asr/icefall
|
||||
export PYTHONPATH=$PYTHONPATH:/lustre/fsw/sa/yuekaiz/asr/seamless_communication/src
|
||||
export TORCH_HOME=/lustre/fsw/sa/yuekaiz/asr/hub
|
||||
torchrun --nproc-per-node 8 seamlessm4t/train2.py --use-fp16 1 --max-duration 300 --base-lr 1e-5 --exp-dir seamlessm4t/exp
|
||||
torchrun --nproc-per-node 8 seamlessm4t/train2.py --use-fp16 1 --max-duration 300 --base-lr 1e-5 --exp-dir seamlessm4t/exp --start-epoch 4
|
||||
|
@ -27,7 +27,7 @@ import k2
|
||||
import torch
|
||||
import torch.nn as nn
|
||||
from asr_datamodule import AishellAsrDataModule
|
||||
from conformer import Conformer
|
||||
#from conformer import Conformer
|
||||
|
||||
from icefall.char_graph_compiler import CharCtcTrainingGraphCompiler
|
||||
from icefall.checkpoint import average_checkpoints, load_checkpoint
|
||||
|
Loading…
x
Reference in New Issue
Block a user