diff --git a/egs/aishell/ASR/conformer_ctc/.train.py.swp b/egs/aishell/ASR/conformer_ctc/.train.py.swp index ead1a81a4..0c6568738 100644 Binary files a/egs/aishell/ASR/conformer_ctc/.train.py.swp and b/egs/aishell/ASR/conformer_ctc/.train.py.swp differ diff --git a/egs/aishell/ASR/conformer_ctc/train.py b/egs/aishell/ASR/conformer_ctc/train.py index c1684d3e0..081c93aae 100755 --- a/egs/aishell/ASR/conformer_ctc/train.py +++ b/egs/aishell/ASR/conformer_ctc/train.py @@ -455,7 +455,8 @@ def compute_validation_loss( remove_epoch = k remove_filename = params.exp_dir / f"best-valid-loss_{remove_epoch}.pt" - if loss.device == 0: os.remove(remove_filename) + try: os.remove(remove_filename) + except: pass del params.best_valid_losses[k] params.best_valid_losses[params.cur_epoch] = loss_value