Skip to content

Commit

Permalink
Remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
pplantinga committed Jun 16, 2022
1 parent ed6dbd0 commit cd29f3d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
16 changes: 0 additions & 16 deletions recipes/Voicebank/MTL/ASR_enhance/hparams/pretrain_perceptual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,11 @@ output_neurons: 42
blank_index: 0
bos_index: 0
eos_index: 0
#blank_index: !ref <output_neurons> - 1
#bos_index: !ref <output_neurons> - 2
#eos_index: !ref <output_neurons> - 2

# Import perceptual model hyperparams
model: !include:models/perceptual_model.yaml
output_neurons: !ref <output_neurons>
n_fft: !ref <n_fft>
#n_mels: !ref <n_mels>

epoch_counter: !new:speechbrain.utils.epoch_loop.EpochCounter
limit: !ref <number_of_epochs>
Expand All @@ -82,16 +78,6 @@ compute_stft: !new:speechbrain.processing.features.STFT
win_length: !ref <win_length>
hop_length: !ref <hop_length>

# compute_istft: !new:speechbrain.processing.features.ISTFT
# sample_rate: !ref <sample_rate>
# n_fft: !ref <n_fft>
# win_length: !ref <win_length>
# hop_length: !ref <hop_length>

#fbank: !new:speechbrain.processing.features.Filterbank
# n_mels: !ref <n_mels>
# n_fft: !ref <n_fft>

spectral_magnitude: !name:speechbrain.processing.features.spectral_magnitude
power: 0.5

Expand Down Expand Up @@ -120,8 +106,6 @@ modules:
ctc_output: !ref <model[ctc_output]>
seq_output: !ref <model[seq_output]>

#jit_module_keys: [src_embedding]

checkpointer: !new:speechbrain.utils.checkpoints.Checkpointer
checkpoints_dir: !ref <save_folder>
recoverables:
Expand Down
7 changes: 0 additions & 7 deletions recipes/Voicebank/MTL/ASR_enhance/hparams/robust_asr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ lr: 0.0001
target_type: words
checkpoint_avg: 5 # average this many checkpoints for eval
sorting: ascending
# character_coverage: 1.0
eval_max_key: null
eval_min_key: null
train_loader_options:
Expand Down Expand Up @@ -202,12 +201,6 @@ checkpointer: !new:speechbrain.utils.checkpoints.Checkpointer
counter: !ref <epoch_counter>
normalizer: !ref <normalizer>

# pretrain_checkpointer: !new:speechbrain.utils.checkpoints.Checkpointer
# checkpoints_dir: pretrain
# recoverables:
# model: !ref <model>
# normalizer: !ref <normalizer>

enhance_loss: !name:speechbrain.nnet.losses.mse_loss
mimic_loss: !name:speechbrain.nnet.losses.mse_loss
ctc_loss: !name:speechbrain.nnet.losses.ctc_loss
Expand Down

0 comments on commit cd29f3d

Please sign in to comment.