-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.bat
More file actions
41 lines (30 loc) · 852 Bytes
/
Copy pathinstall.bat
File metadata and controls
41 lines (30 loc) · 852 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
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
setlocal
cd /d "%~dp0"
echo === HeartMuse Music Generator - Installation ===
where python >nul 2>&1
if errorlevel 1 (
echo Error: Python not found. Please install Python 3.10+
pause
exit /b 1
)
python --version
if not exist "venv" (
echo Creating virtual environment...
python -m venv venv
)
call venv\Scripts\activate.bat
echo Installing PyTorch with CUDA 12.4 support...
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu124
if not exist "heartlib" (
echo Cloning heartlib...
git clone https://github.com/HeartMuLa/heartlib.git
)
echo Installing heartlib...
pip install -e heartlib
echo Installing app dependencies...
pip install -r requirements.txt
echo.
echo === Installation complete! ===
echo Run run.bat to start the application.
pause