File size: 852 Bytes
c7f3ffb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/bin/bash

script_dir=$(dirname "$(realpath "$0")")
root_dir=$(dirname "$script_dir")

cd $root_dir || exit
export PYTHONPATH=$root_dir:$PYTHONPATH

model_path=pretrained_models/SoulX-Singer/model.pt
config=soulxsinger/config/soulxsinger.yaml
prompt_wav_path=example/audio/zh_prompt.mp3
prompt_metadata_path=example/audio/zh_prompt.json
target_metadata_path=example/audio/music.json
phoneset_path=soulxsinger/utils/phoneme/phone_set.json
save_dir=example/generated/music
control=score  # melody or score

python -m cli.inference \
    --device cuda \
    --model_path $model_path \
    --config $config \
    --prompt_wav_path $prompt_wav_path \
    --prompt_metadata_path $prompt_metadata_path \
    --target_metadata_path $target_metadata_path \
    --phoneset_path $phoneset_path \
    --save_dir $save_dir \
    --auto_shift \
    --pitch_shift 0