mattricesound commited on
Commit
dfbeb31
·
1 Parent(s): f73ffe0

WIP: demucs_fix

Browse files
Files changed (3) hide show
  1. README.md +4 -1
  2. exp/demucs.yaml +1 -1
  3. remfx/models.py +1 -1
README.md CHANGED
@@ -10,10 +10,13 @@
10
  `./scripts/download_egfx.sh`
11
 
12
  ## Train model
13
- 1. Change Wandb variables in `shell_vars.sh`
14
  2. `python scripts/train.py exp=audio_diffusion`
15
  or
16
  2. `python scripts/train.py exp=umx`
 
 
 
17
 
18
  To add gpu, add `trainer.accelerator='gpu' trainer.devices=-1` to the command-line
19
 
 
10
  `./scripts/download_egfx.sh`
11
 
12
  ## Train model
13
+ 1. Change Wandb variables in `shell_vars.sh` and `source shell_vars.sh`
14
  2. `python scripts/train.py exp=audio_diffusion`
15
  or
16
  2. `python scripts/train.py exp=umx`
17
+ or
18
+ 2. `python scripts/train.py exp=demucs`
19
+
20
 
21
  To add gpu, add `trainer.accelerator='gpu' trainer.devices=-1` to the command-line
22
 
exp/demucs.yaml CHANGED
@@ -9,7 +9,7 @@ model:
9
  sample_rate: ${sample_rate}
10
  network:
11
  _target_: remfx.models.DemucsModel
12
- sources: ["other"]
13
  audio_channels: 1
14
  nfft: 4096
15
  sample_rate: ${sample_rate}
 
9
  sample_rate: ${sample_rate}
10
  network:
11
  _target_: remfx.models.DemucsModel
12
+ sources: ["mixture"]
13
  audio_channels: 1
14
  nfft: 4096
15
  sample_rate: ${sample_rate}
remfx/models.py CHANGED
@@ -86,7 +86,7 @@ class RemFXModel(pl.LightningModule):
86
 
87
  return loss
88
 
89
- def on_train_batch_start(self, batch, batch_idx, dataloader_idx):
90
  if self.log_first:
91
  x, target, label = batch
92
  for metric in self.metrics:
 
86
 
87
  return loss
88
 
89
+ def on_train_batch_start(self, batch, batch_idx):
90
  if self.log_first:
91
  x, target, label = batch
92
  for metric in self.metrics: