File size: 990 Bytes
90556f9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
CHECKPOINT_PATH=/home/wangrui/projects/SpeechT5/experimental/s2c/checkpoint_28_60000.pt
DATA_ROOT=/home/wangrui/projects/SpeechT5/manifest
SUBSET=test
USER_DIR=/home/wangrui/projects/SpeechT5/SpeechT5/fairseq/examples/speecht5
RESULTS_PATH=/home/wangrui/projects/SpeechT5/experimental/s2c/results
mkdir -p ${RESULTS_PATH}
# fairseq-validate ${DATA_ROOT} \
# --user-dir ${USER_DIR} \
# --log-format json \
# --task speecht5 \
# --t5-task s2c \
# --path ${CHECKPOINT_PATH} \
# --results-path ${RESULTS_PATH} \
# --batch-size 1 \
# --max-speech-positions 8000 \
# --sample-rate 16000 | tee -a ${RESULTS_PATH}/validate-class.txt
python scripts/generate_class.py ${DATA_ROOT} \
--gen-subset ${SUBSET} \
--user-dir ${USER_DIR} \
--log-format json \
--task speecht5 \
--t5-task s2c \
--path ${CHECKPOINT_PATH} \
--results-path ${RESULTS_PATH} \
--batch-size 1 \
--max-speech-positions 8000 \
--sample-rate 16000 | tee -a ${RESULTS_PATH}/generate-class.txt
|