Spaces:
Runtime error
Runtime error
Commit
·
35ce5ba
1
Parent(s):
83de436
Add exp/default.yaml to configure experiments
Browse files- README.md +5 -7
- cfg/config.yaml +0 -1
- cfg/exp/default.yaml +28 -0
README.md
CHANGED
@@ -17,22 +17,22 @@
|
|
17 |
# Training
|
18 |
## Steps
|
19 |
1. Change Wandb and data root variables in `shell_vars.sh` and `source shell_vars.sh`
|
20 |
-
2. `python scripts/train.py
|
21 |
|
22 |
-
##
|
|
|
23 |
- `max_kept_effects={n}` max number of <b> Kept </b> effects to apply to each file. Set to -1 to always use all effects (default: -1)
|
24 |
- `max_removed_effects={n}` max number of <b> Removed </b> effects to apply to each file. Set to -1 to always use all effects (default: -1)
|
25 |
- `model={model}` architecture to use (see 'Models')
|
26 |
-
- `shuffle_kept_effects=True/False` Shuffle kept effects (default: True)
|
27 |
-
- `shuffle_removed_effects=True/False` Shuffle removed effects (default: False)
|
28 |
- `effects_to_use={effect}` Effects to use (see 'Effects') (default: all in the list)
|
29 |
- `effects_to_remove={effect}` Effects to remove (see 'Effects') (default: all in the list)
|
30 |
-
- `accelerator=null/gpu` Use GPU (1 device) (default:
|
31 |
- `render_files=True/False` Render files. Disable to skip rendering stage (default: True)
|
32 |
- `render_root={path/to/dir}`. Root directory to render files to (default: DATASET_ROOT)
|
33 |
|
34 |
Note that "kept effects" are calculated from the difference between `effects_to_use` and `effects_to_remove`.
|
35 |
|
|
|
36 |
Example: `python scripts/train.py model=demucs "effects_to_use=[distortion, reverb, chorus]" "effects_to_remove=[distortion]" max_kept_effects=2 max_removed_effects=4 shuffle_kept_effects=False shuffle_removed_effects=True accelerator='gpu' render_root=/scratch/VocalSet'`
|
37 |
|
38 |
Printout:
|
@@ -42,8 +42,6 @@ Apply kept effects: ['chorus', 'reverb'] (Up to 2, chosen in order) -> Dry
|
|
42 |
Apply remove effects: ['distortion'] (Up to 4, chosen randomly) -> Wet
|
43 |
```
|
44 |
|
45 |
-
See `cfg/config.yaml` for more options that can be specified on the command line.
|
46 |
-
|
47 |
## Models
|
48 |
- `umx`
|
49 |
- `demucs`
|
|
|
17 |
# Training
|
18 |
## Steps
|
19 |
1. Change Wandb and data root variables in `shell_vars.sh` and `source shell_vars.sh`
|
20 |
+
2. `python scripts/train.py +exp=default`
|
21 |
|
22 |
+
## Experiments
|
23 |
+
Training parameters can be configured in `cfg/exp/default.yaml`. Here are some descriptions
|
24 |
- `max_kept_effects={n}` max number of <b> Kept </b> effects to apply to each file. Set to -1 to always use all effects (default: -1)
|
25 |
- `max_removed_effects={n}` max number of <b> Removed </b> effects to apply to each file. Set to -1 to always use all effects (default: -1)
|
26 |
- `model={model}` architecture to use (see 'Models')
|
|
|
|
|
27 |
- `effects_to_use={effect}` Effects to use (see 'Effects') (default: all in the list)
|
28 |
- `effects_to_remove={effect}` Effects to remove (see 'Effects') (default: all in the list)
|
29 |
+
- `accelerator=null/'gpu'` Use GPU (1 device) (default: null)
|
30 |
- `render_files=True/False` Render files. Disable to skip rendering stage (default: True)
|
31 |
- `render_root={path/to/dir}`. Root directory to render files to (default: DATASET_ROOT)
|
32 |
|
33 |
Note that "kept effects" are calculated from the difference between `effects_to_use` and `effects_to_remove`.
|
34 |
|
35 |
+
These can also be specified on the command line.
|
36 |
Example: `python scripts/train.py model=demucs "effects_to_use=[distortion, reverb, chorus]" "effects_to_remove=[distortion]" max_kept_effects=2 max_removed_effects=4 shuffle_kept_effects=False shuffle_removed_effects=True accelerator='gpu' render_root=/scratch/VocalSet'`
|
37 |
|
38 |
Printout:
|
|
|
42 |
Apply remove effects: ['distortion'] (Up to 4, chosen randomly) -> Wet
|
43 |
```
|
44 |
|
|
|
|
|
45 |
## Models
|
46 |
- `umx`
|
47 |
- `demucs`
|
cfg/config.yaml
CHANGED
@@ -3,7 +3,6 @@ defaults:
|
|
3 |
- model: null
|
4 |
- effects: all
|
5 |
|
6 |
-
|
7 |
seed: 12345
|
8 |
train: True
|
9 |
sample_rate: 48000
|
|
|
3 |
- model: null
|
4 |
- effects: all
|
5 |
|
|
|
6 |
seed: 12345
|
7 |
train: True
|
8 |
sample_rate: 48000
|
cfg/exp/default.yaml
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# @package _global_
|
2 |
+
defaults:
|
3 |
+
- override /model: demucs
|
4 |
+
- override /effects: all
|
5 |
+
seed: 12345
|
6 |
+
sample_rate: 48000
|
7 |
+
chunk_size: 262144 # 5.5s
|
8 |
+
logs_dir: "./logs"
|
9 |
+
render_files: True
|
10 |
+
render_root: "./data"
|
11 |
+
accelerator: null
|
12 |
+
max_kept_effects: -1
|
13 |
+
max_removed_effects: -1
|
14 |
+
shuffle_kept_effects: True
|
15 |
+
shuffle_removed_effects: True
|
16 |
+
effects_to_use:
|
17 |
+
- compressor
|
18 |
+
- distortion
|
19 |
+
- reverb
|
20 |
+
- chorus
|
21 |
+
effects_to_remove:
|
22 |
+
- compressor
|
23 |
+
- distortion
|
24 |
+
- reverb
|
25 |
+
- chorus
|
26 |
+
datamodule:
|
27 |
+
batch_size: 16
|
28 |
+
num_workers: 8
|