-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
build-standalone.bat
81 lines (76 loc) · 3.53 KB
/
build-standalone.bat
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
pip install -U pyinstaller==6.7.0
rem install plugin dependencies (also added in pyinstaller)
pip install winsdk
rem pyinstaller audioWhisper.py -y ^
rem --python-option=u ^
rem --hidden-import=pytorch --collect-data torch --copy-metadata torch ^
rem --hidden-import=torchaudio.lib.libtorchaudio ^
rem --hidden-import=scipy.signal ^
rem --hidden-import=transformers.models.nllb ^
rem --hidden-import=sentencepiece ^
rem --hidden-import=df.deepfilternet3 ^
rem --hidden-import=bitsandbytes ^
rem --hidden-import=faiss-cpu ^
rem --hidden-import=praat-parselmouth ^
rem --hidden-import=parselmouth ^
rem --hidden-import=pyworld ^
rem --hidden-import=torchcrepe ^
rem --hidden-import=grpcio ^
rem --hidden-import=grpc ^
rem --hidden-import=annotated_types ^
rem --hidden-import=Cython ^
rem --hidden-import=nemo_toolkit ^
rem --hidden-import=nemo ^
rem --hidden-import=noisereduce ^
rem --copy-metadata rich ^
rem --copy-metadata tqdm ^
rem --copy-metadata regex ^
rem --copy-metadata requests ^
rem --copy-metadata packaging ^
rem --copy-metadata filelock ^
rem --copy-metadata numpy ^
rem --copy-metadata tokenizers ^
rem --copy-metadata sentencepiece ^
rem --copy-metadata transformers ^
rem --copy-metadata huggingface-hub ^
rem --copy-metadata safetensors ^
rem --copy-metadata pyyaml ^
rem --copy-metadata pyloudnorm ^
rem --copy-metadata nltk ^
rem --copy-metadata noisereduce ^
rem --collect-data whisper ^
rem --collect-data pykakasi ^
rem --collect-all easyocr ^
rem --collect-all winsdk ^
rem --collect-all ctranslate2 ^
rem --collect-all torchaudio ^
rem --collect-all scipy ^
rem --collect-all lazy_loader ^
rem --collect-all decorator ^
rem --collect-all librosa ^
rem --collect-all torchlibrosa ^
rem --collect-all sentencepiece ^
rem --collect-all transformers ^
rem --collect-all df ^
rem --collect-all nltk ^
rem --collect-all fairseq ^
rem --collect-all bitsandbytes ^
rem --collect-all faiss-cpu ^
rem --collect-all praat-parselmouth ^
rem --collect-all pyworld ^
rem --collect-all torchcrepe ^
rem --collect-all grpcio ^
rem --collect-all grpc ^
rem --collect-all annotated_types ^
rem --collect-all Cython ^
rem --collect-all nemo_toolkit ^
rem --collect-all nemo ^
rem --collect-all noisereduce ^
rem --collect-submodules fairseq ^
rem --add-data ".cache/nltk/tokenizers/punkt;./nltk_data/tokenizers/punkt" ^
rem -i app-icon.ico
rem set pyrecursivelimit=import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
rem (echo %pyrecursivelimit%) > temp.txt & type audioWhisper.spec >> temp.txt & move /y temp.txt audioWhisper.spec >nul
rem 1. In your program's .spec file add this line near the top::
rem import sys ; sys.setrecursionlimit(sys.getrecursionlimit() * 5)
pyinstaller audioWhisper.spec -y