Update requirements to allow for CUDA, update instructions respectively

This commit is contained in:
oitsjustjose 2025-03-30 21:28:52 -05:00
commit b512642c9b
4 changed files with 40 additions and 5 deletions

View file

@ -6,17 +6,18 @@
pip install pyinstaller
```
### Then build the application:
### Next, build the CLI application:
This is required for the GUI application -- you'll see as you use it
```powershell
pyinstaller `
--noconfirm `
--onefile `
--windowed `
--noconfirm `
--console `
--icon ".\assets\icon.ico" `
--name "Drum Track Converter" `
--name "dtc_cli" `
--add-data ".\src;src/" `
--add-data=".\assets\icon.ico;assets/icon.ico." `
--add-data ".\.venv\Lib\site-packages\demucs\remote;demucs/remote/" `
--hidden-import "eyed3" `
--hidden-import "demucs" `
@ -25,6 +26,23 @@ pyinstaller `
--hidden-import "numpy" `
--collect-submodules "demucs" `
--collect-submodules "numpy" `
".\src\cli.py"
```
### Finally, build the GUI application:
On the TODO: dtc_cli.exe is hard-coded and that's gross. I don't want to have to configure multiple builds for each platform if possible..
```powershell
pyinstaller `
--onefile `
--noconfirm `
--console `
--icon ".\assets\icon.ico" `
--name "Drum Track Converter" `
--add-data ".\src;src/" `
--add-data=".\assets;assets/" `
--add-data ".\dist\dtc_cli.exe;." `
".\src\gui.py"
```

View file

@ -8,6 +8,10 @@ I'm not entirely sure if this application _requires_ an Nvidia GPU or not, I act
As `demucs` has a dependency on FFmpeg, so does this project. Installation is easy and lightweight. You can install FFMpeg for your operating system of choice from the [official site](https://ffmpeg.org/download.html).
# ℹ️ Using Your Nvidia GPU ℹ️
If you wish to use your Nvidia GPU, be sure to install the Cuda Toolkit version 11.8 from [here](https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_522.06_windows.exe) before proceeding.
## ℹ️ Additional Features
### 💽 Metadata Replication

11
requirements.cuda.txt Normal file
View file

@ -0,0 +1,11 @@
--extra-index-url https://download.pytorch.org/whl/cu118
demucs==4.0.1
eyed3==0.9.7
PySide6_Addons==6.8.3
PySide6_Essentials==6.8.3
PySide6==6.8.3
tinytag==1.10.1
torch==2.6.0+cu118
torchaudio==2.6.0+cu118
wavinfo==3.1.0

View file

@ -4,4 +4,6 @@ PySide6_Addons==6.8.3
PySide6_Essentials==6.8.3
PySide6==6.8.3
tinytag==1.10.1
torch==2.6.0
torchaudio==2.6.0
wavinfo==3.1.0