mattricesound commited on
Commit
78dbfc8
1 Parent(s): 140ad27

Fix server issues

Browse files
Files changed (3) hide show
  1. remfx/datasets.py +0 -3
  2. remfx/models.py +2 -2
  3. setup.py +1 -0
remfx/datasets.py CHANGED
@@ -190,9 +190,6 @@ class VocalSet(Dataset):
190
  self.chunk_size_in_sec = chunk_size_in_sec
191
  self.sample_rate = sample_rate
192
  self.mode = mode
193
- import pdb
194
-
195
- pdb.set_trace()
196
 
197
  mode_path = self.root / self.mode
198
  self.files = sorted(list(mode_path.glob("./**/*.wav")))
 
190
  self.chunk_size_in_sec = chunk_size_in_sec
191
  self.sample_rate = sample_rate
192
  self.mode = mode
 
 
 
193
 
194
  mode_path = self.root / self.mode
195
  self.files = sorted(list(mode_path.glob("./**/*.wav")))
remfx/models.py CHANGED
@@ -26,10 +26,10 @@ class FADLoss(torch.nn.Module):
26
  embds_background = []
27
  embds_eval = []
28
  for sample in audio_background:
29
- embd = self.fad.model.forward(sample.T.detach().numpy(), self.sr)
30
  embds_background.append(embd.cpu().detach().numpy())
31
  for sample in audio_eval:
32
- embd = self.fad.model.forward(sample.T.detach().numpy(), self.sr)
33
  embds_eval.append(embd.cpu().detach().numpy())
34
  embds_background = np.concatenate(embds_background, axis=0)
35
  embds_eval = np.concatenate(embds_eval, axis=0)
 
26
  embds_background = []
27
  embds_eval = []
28
  for sample in audio_background:
29
+ embd = self.fad.model.forward(sample.T.cpu().detach().numpy(), self.sr)
30
  embds_background.append(embd.cpu().detach().numpy())
31
  for sample in audio_eval:
32
+ embd = self.fad.model.forward(sample.T.cpu().detach().numpy(), self.sr)
33
  embds_eval.append(embd.cpu().detach().numpy())
34
  embds_background = np.concatenate(embds_background, axis=0)
35
  embds_eval = np.concatenate(embds_eval, axis=0)
setup.py CHANGED
@@ -46,6 +46,7 @@ setup(
46
  "auraloss",
47
  "pyloudnorm",
48
  "pedalboard",
 
49
  ],
50
  include_package_data=True,
51
  license="Apache License 2.0",
 
46
  "auraloss",
47
  "pyloudnorm",
48
  "pedalboard",
49
+ "frechet_audio_distance",
50
  ],
51
  include_package_data=True,
52
  license="Apache License 2.0",