Skip to content

Commit

Permalink
[cm] 4 device training
Browse files Browse the repository at this point in the history
  • Loading branch information
christhetree committed May 4, 2023
1 parent d26d2e4 commit 292747e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
45 changes: 24 additions & 21 deletions cfg/hdemucs.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pytorch_lightning==1.8.5.post0
seed_everything: 2434
seed_everything: 45
trainer:
logger: true
enable_checkpointing: true
Expand Down Expand Up @@ -27,16 +27,16 @@ trainer:
gradient_clip_algorithm: null
num_nodes: 1
num_processes: null
devices: 1
# devices: 2
# devices: 1
devices: 4
gpus: null
auto_select_gpus: false
tpu_cores: null
ipus: null
enable_progress_bar: true
overfit_batches: 0.0
track_grad_norm: -1
check_val_every_n_epoch: 1
check_val_every_n_epoch: 10
fast_dev_run: false
accumulate_grad_batches: 4
max_epochs: -1
Expand Down Expand Up @@ -71,7 +71,10 @@ trainer:
move_metrics_to_cpu: false
multiple_trainloader_mode: max_size_cycle
inference_mode: true
ckpt_path: null
#ckpt_path: null
#ckpt_path: /import/c4dm-datasets-ext/cm007/mdx_checkpoints/aug_random_mix__epoch=265-step=140000.ckpt
#ckpt_path: /import/c4dm-datasets-ext/cm007/mdx_checkpoints/aug3__epoch=447-step=172000.ckpt
ckpt_path: /import/c4dm-datasets-ext/cm007/mdx_checkpoints/epoch=750-step=212000.ckpt
model:
class_path: aimless.lightning.waveform.WaveformSeparator
init_args:
Expand Down Expand Up @@ -113,7 +116,7 @@ model:
- 90
- 100
- 110
p: 0.2
p: 0.3
- class_path: aimless.augment.RandomPitch
init_args:
semitones:
Expand All @@ -122,7 +125,7 @@ model:
- 0
- 1
- 2
p: 0.2
p: 0.3
targets: {vocals, drums, bass, other}
data:
class_path: data.lightning.LabelNoise
Expand All @@ -137,59 +140,59 @@ data:
- class_path: data.augment.RandomParametricEQ
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.RandomPedalboardDistortion
init_args:
sample_rate: 44100
p: 0.01
p: 0.03
- class_path: data.augment.RandomPedalboardDelay
init_args:
sample_rate: 44100
p: 0.01
p: 0.03
- class_path: data.augment.RandomPedalboardChorus
init_args:
sample_rate: 44100
p: 0.01
p: 0.03
- class_path: data.augment.RandomPedalboardPhaser
init_args:
sample_rate: 44100
p: 0.01
p: 0.03
- class_path: data.augment.RandomPedalboardCompressor
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.RandomPedalboardReverb
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.RandomStereoWidener
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.RandomPedalboardLimiter
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.RandomVolumeAutomation
init_args:
sample_rate: 44100
p: 0.1
p: 0.3
- class_path: data.augment.LoudnessNormalize
init_args:
sample_rate: 44100
target_lufs_db: -32.0
p: 0.1
p: 0.3
- class_path: data.augment.RandomGain
init_args:
low: 0.25
high: 1.25
p: 0.2
p: 0.3
- class_path: data.augment.RandomFlipPhase
init_args:
p: 0.2
p: 0.3
- class_path: data.augment.RandomSwapLR
init_args:
p: 0.2
p: 0.3
random: true
# include_val: true
random_track_mix: true
Expand Down
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def cli_main():
# torch.backends.cudnn.benchmark = False
torch.set_float32_matmul_precision("medium")
# os.environ["CUDA_VISIBLE_DEVICES"] = "0"
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
# os.environ["CUDA_VISIBLE_DEVICES"] = "0,1"
# os.environ["CUDA_VISIBLE_DEVICES"] = "1"
os.environ["CUDA_VISIBLE_DEVICES"] = "4,5,6,7"

cli = LightningCLI(
trainer_defaults={
Expand All @@ -23,5 +23,5 @@ def cli_main():


if __name__ == "__main__":
print("ayylmao random transforms")
print("4 devices last")
cli_main()

0 comments on commit 292747e

Please sign in to comment.