Skip to content

Commit 1eac09a

Browse files
authored
Merge pull request #22 from noahschaffer/noahschaffer
Fixed bugs in the repetition page
2 parents 2c4e9a3 + 6580446 commit 1eac09a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

book/first_steps/repetition.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
"fg_mask_arr = fg_mask.mask\n",
218218
"\n",
219219
"# Multiply the masks to the magnitude spectrogram\n",
220+
"mix.stft()\n",
220221
"mix_mag_spec = mix.magnitude_spectrogram_data\n",
221222
"bg_no_phase_spec = mix_mag_spec * bg_mask_arr\n",
222223
"fg_no_phase_spec = mix_mag_spec * fg_mask_arr\n",
@@ -394,10 +395,10 @@
394395
}
395396
],
396397
"source": [
397-
"print('REPET Background without Phase')\n",
398+
"print('REPET Background with Phase')\n",
398399
"_ = bg_phase.embed_audio()\n",
399400
"\n",
400-
"print('REPET Foreground without Phase')\n",
401+
"print('REPET Foreground with Phase')\n",
401402
"_ = fg_phase.embed_audio()"
402403
]
403404
},
@@ -605,7 +606,7 @@
605606
"source": [
606607
"bss_eval = nussl.evaluation.BSSEvalScale(\n",
607608
" true_sources_list=[gt_bg, gt_fg],\n",
608-
" estimated_sources_list=[repet_bg, repet_bg]\n",
609+
" estimated_sources_list=[repet_bg, repet_fg]\n",
609610
")\n",
610611
"repet_eval = bss_eval.evaluate()\n",
611612
"\n",
@@ -1076,7 +1077,7 @@
10761077
"name": "python",
10771078
"nbconvert_exporter": "python",
10781079
"pygments_lexer": "ipython3",
1079-
"version": "3.7.6"
1080+
"version": "3.8.1"
10801081
}
10811082
},
10821083
"nbformat": 4,

0 commit comments

Comments
 (0)