Skip to content
Snippets Groups Projects
Commit 31612097 authored by chinyun_yu_joey's avatar chinyun_yu_joey
Browse files

fix: forgot to multiply magnitude

parent 6f1285c0
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,8 @@ def separate(
X = stft(audio_torch)
with torch.no_grad():
masked_tf_rep = x_umx_target(X.abs().unsqueeze(0)).squeeze()
X_mag = X.abs()
masked_tf_rep = x_umx_target(X_mag.unsqueeze(0)).squeeze() * X_mag
Vj = masked_tf_rep.cpu().numpy()
if softmask:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment