Spaces:
Sleeping
Sleeping
Commit
·
9589cd1
1
Parent(s):
a89496d
Add GPU support
Browse files- README.md +14 -4
- config.yaml +2 -0
README.md
CHANGED
@@ -1,7 +1,17 @@
|
|
1 |
|
2 |
-
|
|
|
|
|
3 |
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
python3 -m venv env
|
7 |
-
pip install -e .
|
|
|
1 |
|
2 |
+
## Install Packages
|
3 |
+
`python3 -m venv env`
|
4 |
+
`pip install -e .`
|
5 |
|
6 |
+
## Download [GuitarFX Dataset] (https://zenodo.org/record/7044411/)
|
7 |
+
`./download_egfx.sh`
|
8 |
+
|
9 |
+
## Train model
|
10 |
+
1. Change Wandb variables in `shell_vars.sh`
|
11 |
+
2. `python train.py exp=audio_diffusion`
|
12 |
+
or
|
13 |
+
2. `python train.py exp=umx`
|
14 |
+
|
15 |
+
To add gpu, add `trainer.accelerator='gpu' trainer.devices=-1` to the command-line
|
16 |
+
Ex. `python train.py exp=umx trainer.accelerator='gpu' trainer.devices=-1`
|
17 |
|
|
|
|
config.yaml
CHANGED
@@ -48,3 +48,5 @@ trainer:
|
|
48 |
enable_model_summary: False
|
49 |
log_every_n_steps: 1 # Logs metrics every N batches
|
50 |
accumulate_grad_batches: 1
|
|
|
|
|
|
48 |
enable_model_summary: False
|
49 |
log_every_n_steps: 1 # Logs metrics every N batches
|
50 |
accumulate_grad_batches: 1
|
51 |
+
accelerator: null
|
52 |
+
devices: 1
|