File size: 658 Bytes
dd9600d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
export CUDA_VISIBLE_DEVICES=0

SAVE_DIR='./agent_data' # to save processed data
CACHE_DIR='./cache' # to save dataset cache
WAV_DIR='' # downloaded capspeech-agentdb wav path
CPUS=30
N_WORKERS=8
BATCH_SIZE=64
HUB='OpenSound/CapSpeech'

python preprocess_agenttts.py \
    --hub ${HUB} \
    --save_dir ${SAVE_DIR} \
    --cache_dir ${CACHE_DIR} \
    --wav_dir ${WAV_DIR}\
    --splits train_AgentDB test_AgentDB \
    --audio_min_length 2.0 \
    --audio_max_length 20.0 

python phonemize_no_se.py \
    --save_dir ${SAVE_DIR} \
    --num_cpus ${CPUS}

python caption.py \
    --save_dir ${SAVE_DIR}

python filemaker_no_se.py \
    --save_dir ${SAVE_DIR}