test.sh 1003 Bytes
Newer Older
chenzk's avatar
v1.0  
chenzk committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 1、text-to-music task

# with flow matching
# use one-line command to get a quick try
python -m inspiremusic.cli.inference

# custom the config like the following one-line command
# python -m inspiremusic.cli.inference --task text-to-music -m "InspireMusic-1.5B-Long" -g 0 -t "Experience soothing and sensual instrumental jazz with a touch of Bossa Nova, perfect for a relaxing restaurant or spa ambiance." -c intro -s 0.0 -e 30.0 -r "exp/inspiremusic" -o output -f wav

# without flow matching
# python -m inspiremusic.cli.inference --task text-to-music -g 0 -t "Experience soothing and sensual instrumental jazz with a touch of Bossa Nova, perfect for a relaxing restaurant or spa ambiance." --fast True




# 2、Music Continuation Task

# with flow matching
# python -m inspiremusic.cli.inference --task continuation -g 0 -a exp/inspiremusic/output_audio.wav
# without flow matching
# python -m inspiremusic.cli.inference --task continuation -g 0 -a exp/inspiremusic/output_audio.wav --fast True