anhnv125 commited on
Commit
0cccc8d
1 Parent(s): 5f5e024

Update models/frn.py

Browse files
Files changed (1) hide show
  1. models/frn.py +1 -1
models/frn.py CHANGED
@@ -152,7 +152,7 @@ class PLCModel(pl.LightningModule):
152
  pred = pred.detach().cpu().numpy()
153
  lsd, _ = LSD(tar_wav, pred)
154
 
155
- if batch_idx in [3, 5, 7]:
156
  sample_path = os.path.join(CONFIG.LOG.sample_path)
157
  path = os.path.join(sample_path, 'sample_' + str(batch_idx))
158
  visualize(tar_wav, inp_wav, pred, path)
 
152
  pred = pred.detach().cpu().numpy()
153
  lsd, _ = LSD(tar_wav, pred)
154
 
155
+ if batch_idx in [5, 7, 9]:
156
  sample_path = os.path.join(CONFIG.LOG.sample_path)
157
  path = os.path.join(sample_path, 'sample_' + str(batch_idx))
158
  visualize(tar_wav, inp_wav, pred, path)