Skip to content

Commit

Permalink
re-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
genisplaja committed Dec 3, 2024
1 parent 002947d commit bf6db66
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions webbook/resources/exploring-performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -364,16 +364,6 @@
"print(\"20-second video segment processing complete. Output saved as 'output_segment.mp4'\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import subprocess\n",
"subprocess.run([\"ffmpeg\", \"-vcodec\", \"libx264\", \"-acodec\", \"aac\", f\"{vid_out_path.replace('.mp4', '_re-encoded.mp4')}\"])"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -390,7 +380,7 @@
"\n",
"from IPython.core.display import Video\n",
"\n",
"Video(vid_out_path.replace('.mp4', '_re-encoded.mp4'), embed=True)"
"Video(vid_out_path, embed=True)"
]
},
{
Expand Down Expand Up @@ -690,7 +680,7 @@
"outputs": [],
"source": [
"audio_mix = estd.MonoLoader(filename=audio_path, sampleRate=SEPARATION_SR)()\n",
"separation_input = audio_mix[:SEPARATION_SR*30] # Get 30s\n",
"separation_input = audio_mix[:SEPARATION_SR*20] # Get 20s\n",
"separated_vocals = separation_model.separate(\n",
" separation_input,\n",
" input_sr=SEPARATION_SR\n",
Expand Down Expand Up @@ -823,7 +813,7 @@
"import matplotlib.pyplot as plt\n",
"\n",
"audio_mix = estd.MonoLoader(filename=audio_path, sampleRate=PITCH_EXTRACTION_SR)()\n",
"prediction_input = audio_mix[PITCH_EXTRACTION_SR*60:PITCH_EXTRACTION_SR*90]\n",
"prediction_input = audio_mix[PITCH_EXTRACTION_SR*60:PITCH_EXTRACTION_SR*80]\n",
"\n",
"# Predominant extraction models\n",
"melodia_pitch_track = melodia.extract(prediction_input, input_sr=PITCH_EXTRACTION_SR)\n",
Expand Down

0 comments on commit bf6db66

Please sign in to comment.