-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathinstall-deps.bat
More file actions
28 lines (23 loc) · 846 Bytes
/
install-deps.bat
File metadata and controls
28 lines (23 loc) · 846 Bytes
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
@echo off
echo === Updating Vocalis dependencies ===
echo === Updating frontend dependencies ===
cd frontend
call npm install
cd ..
echo === Updating backend dependencies ===
call .\env\Scripts\activate
echo.
echo Would you like to install PyTorch with CUDA support?
echo 1. Yes - Install with CUDA support (recommended for NVIDIA GPUs)
echo 2. No - Use CPU only
choice /c 12 /n /m "Enter your choice (1 or 2): "
if errorlevel 2 (
echo === Installing with CPU support only ===
python -m pip install -r backend\requirements.txt
) else (
echo === Installing with CUDA support ===
python -m pip install -r backend\requirements.txt
echo === Installing PyTorch with CUDA support ===
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
)
echo === Dependencies updated! ===