-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_GPU.bat
More file actions
35 lines (28 loc) · 1.19 KB
/
install_GPU.bat
File metadata and controls
35 lines (28 loc) · 1.19 KB
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
@echo off
ECHO =================================================================
ECHO PLOTCaption GPU (NVIDIA/CUDA) Installer
ECHO =================================================================
ECHO This will create a Python virtual environment in a 'venv' folder.
ECHO IMPORTANT: You must have an NVIDIA GPU with CUDA drivers installed.
ECHO.
PAUSE
ECHO --- Step 1: Creating Python virtual environment...
python -m venv venv
IF %ERRORLEVEL% NEQ 0 (
ECHO Error: Could not create the virtual environment. Is Python installed and in your PATH?
PAUSE
EXIT /B 1
)
CALL venv\Scripts\activate.bat
ECHO --- Step 2: Uninstalling any old PyTorch versions...
pip uninstall torch torchvision torchaudio -y
ECHO --- Step 3: Installing CUDA-version of PyTorch...
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
ECHO --- Step 4: Installing all other dependencies from requirements.txt...
pip install -r requirements.txt
CALL venv\Scripts\deactivate.bat
ECHO.
ECHO =================================================================
ECHO Installation Complete! To run the app, use run_app.bat
ECHO =================================================================
PAUSE