nevreal commited on
Commit
fbbfaf0
·
verified ·
1 Parent(s): e70613c

Delete tools/dlmodels.sh

Browse files
Files changed (1) hide show
  1. tools/dlmodels.sh +0 -81
tools/dlmodels.sh DELETED
@@ -1,81 +0,0 @@
1
- #!/bin/sh
2
-
3
- printf "working dir is %s\n" "$PWD"
4
- echo "downloading requirement aria2 check."
5
-
6
- if command -v aria2c > /dev/null 2>&1
7
- then
8
- echo "aria2 command found"
9
- else
10
- echo "failed. please install aria2"
11
- exit 1
12
- fi
13
-
14
- echo "dir check start."
15
-
16
- check_dir() {
17
- [ -d "$1" ] && printf "dir %s checked\n" "$1" || \
18
- printf "failed. generating dir %s\n" "$1" && mkdir -p "$1"
19
- }
20
-
21
- check_dir "./assets/pretrained"
22
- check_dir "./assets/pretrained_v2"
23
- check_dir "./assets/uvr5_weights"
24
- check_dir "./assets/uvr5_weights/onnx_dereverb_By_FoxJoy"
25
-
26
- echo "dir check finished."
27
-
28
- echo "required files check start."
29
- check_file_pretrained() {
30
- printf "checking %s\n" "$2"
31
- if [ -f "./assets/""$1""/""$2""" ]; then
32
- printf "%s in ./assets/%s checked.\n" "$2" "$1"
33
- else
34
- echo failed. starting download from huggingface.
35
- if command -v aria2c > /dev/null 2>&1; then
36
- aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$1"/"$2" -d ./assets/"$1" -o "$2"
37
- [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1
38
- else
39
- echo "aria2c command not found. Please install aria2c and try again."
40
- exit 1
41
- fi
42
- fi
43
- }
44
-
45
- check_file_special() {
46
- printf "checking %s\n" "$2"
47
- if [ -f "./assets/""$1""/""$2""" ]; then
48
- printf "%s in ./assets/%s checked.\n" "$2" "$1"
49
- else
50
- echo failed. starting download from huggingface.
51
- if command -v aria2c > /dev/null 2>&1; then
52
- aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/lj1995/VoiceConversionWebUI/resolve/main/"$2" -d ./assets/"$1" -o "$2"
53
- [ -f "./assets/""$1""/""$2""" ] && echo "download successful." || echo "please try again!" && exit 1
54
- else
55
- echo "aria2c command not found. Please install aria2c and try again."
56
- exit 1
57
- fi
58
- fi
59
- }
60
-
61
- check_file_pretrained pretrained D32k.pth
62
- check_file_pretrained pretrained D40k.pth
63
- check_file_pretrained pretrained D48k.pth
64
- check_file_pretrained pretrained G32k.pth
65
- check_file_pretrained pretrained G40k.pth
66
- check_file_pretrained pretrained G48k.pth
67
- check_file_pretrained pretrained_v2 f0D40k.pth
68
- check_file_pretrained pretrained_v2 f0G40k.pth
69
- check_file_pretrained pretrained_v2 D40k.pth
70
- check_file_pretrained pretrained_v2 G40k.pth
71
- check_file_pretrained uvr5_weights HP2_all_vocals.pth
72
- check_file_pretrained uvr5_weights HP3_all_vocals.pth
73
- check_file_pretrained uvr5_weights HP5_only_main_vocal.pth
74
- check_file_pretrained uvr5_weights VR-DeEchoAggressive.pth
75
- check_file_pretrained uvr5_weights VR-DeEchoDeReverb.pth
76
- check_file_pretrained uvr5_weights VR-DeEchoNormal.pth
77
- check_file_pretrained uvr5_weights "onnx_dereverb_By_FoxJoy/vocals.onnx"
78
- check_file_special rmvpe rmvpe.pt
79
- check_file_special hubert hubert_base.pt
80
-
81
- echo "required files check finished."