mattricesound commited on
Commit
6a5decf
1 Parent(s): dbfea06

Add 5-1 experiment. Update test batch_size to 2

Browse files
Files changed (3) hide show
  1. cfg/exp/5-1.yaml +28 -0
  2. cfg/model/dcunet.yaml +1 -1
  3. remfx/datasets.py +1 -1
cfg/exp/5-1.yaml CHANGED
@@ -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: "/scratch/EffectSet"
11
+ accelerator: "gpu"
12
+ log_audio: True
13
+ # Effects
14
+ num_kept_effects: [0,0] # [min, max]
15
+ num_removed_effects: [1,1] # [min, max]
16
+ shuffle_kept_effects: True
17
+ shuffle_removed_effects: True
18
+ num_classes: 5
19
+ effects_to_keep:
20
+ effects_to_remove:
21
+ - distortion
22
+ - compressor
23
+ - reverb
24
+ - chorus
25
+ - delay
26
+ datamodule:
27
+ batch_size: 16
28
+ num_workers: 8
cfg/model/dcunet.yaml CHANGED
@@ -9,7 +9,7 @@ model:
9
  sample_rate: ${sample_rate}
10
  network:
11
  _target_: remfx.models.DCUNetModel
12
- architecture: "DCUNet-10"
13
  stft_kernel_size: 512
14
  fix_length_mode: "pad"
15
  sample_rate: ${sample_rate}
 
9
  sample_rate: ${sample_rate}
10
  network:
11
  _target_: remfx.models.DCUNetModel
12
+ architecture: "Large-DCUNet-20"
13
  stft_kernel_size: 512
14
  fix_length_mode: "pad"
15
  sample_rate: ${sample_rate}
remfx/datasets.py CHANGED
@@ -439,7 +439,7 @@ class EffectDatamodule(pl.LightningDataModule):
439
  def test_dataloader(self) -> DataLoader:
440
  return DataLoader(
441
  dataset=self.test_dataset,
442
- batch_size=self.batch_size,
443
  num_workers=self.num_workers,
444
  pin_memory=self.pin_memory,
445
  shuffle=False,
 
439
  def test_dataloader(self) -> DataLoader:
440
  return DataLoader(
441
  dataset=self.test_dataset,
442
+ batch_size=2, # Use small, consistent batch size for testing
443
  num_workers=self.num_workers,
444
  pin_memory=self.pin_memory,
445
  shuffle=False,