Skip to content

Commit

Permalink
deploy: bec9dce
Browse files Browse the repository at this point in the history
  • Loading branch information
genisplaja committed Nov 29, 2023
1 parent e5b5139 commit e90cf06
Show file tree
Hide file tree
Showing 8 changed files with 62 additions and 55 deletions.
Binary file modified _images/pitch-extraction_24_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions _sources/melodic_analysis/pitch-extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@
"y = y[:3*sr] # Getting just the first 3 seconds\n",
"\n",
"# Predict!\n",
"ftanet_pitch_track = ftanet_carnatic.predict(example.audio_path)\n",
"melodia_pitch_track = melodia.extract(example.audio_path)"
"ftanet_pitch_track = ftanet_carnatic.predict(y)\n",
"melodia_pitch_track = melodia.extract(y)"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion _sources/separation/singing-voice-extraction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
" \"Live at Vani Mahal by Sanjay Subrahmanyan\", \"Sri Raghuvara Sugunaalaya\",\n",
" \"Sanjay Subrahmanyan - Sri Raghuvara Sugunaalaya.mp3\"\n",
" ),\n",
" chunk_size=5,\n",
")"
]
},
Expand All @@ -109,7 +110,7 @@
"# And we play it!\n",
"ipd.Audio(\n",
" data=separation,\n",
" rate=44100,\n",
" rate=separation_model.sample_rate,\n",
")"
]
}
Expand Down
70 changes: 35 additions & 35 deletions melodic_analysis/exploring-raga.html
Original file line number Diff line number Diff line change
Expand Up @@ -1432,14 +1432,14 @@ <h3>3.1 Predominant pitch extraction<a class="headerlink" href="#predominant-pit
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2023-11-29 19:39:08.136033: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcudart.so.11.0&#39;; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2023-11-29 19:39:08.136063: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2023-11-29 20:08:55.185275: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcudart.so.11.0&#39;; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2023-11-29 20:08:55.185299: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2023-11-29 19:39:09.287305: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcuda.so.1&#39;; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2023-11-29 19:39:09.287330: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2023-11-29 19:39:09.287350: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (fv-az570-975): /proc/driver/nvidia/version does not exist
2023-11-29 19:39:09.287533: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2023-11-29 20:08:56.310069: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library &#39;libcuda.so.1&#39;; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/cv2/../../lib64:
2023-11-29 20:08:56.310092: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
2023-11-29 20:08:56.310111: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (fv-az985-106): /proc/driver/nvidia/version does not exist
2023-11-29 20:08:56.310282: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
</pre></div>
</div>
Expand Down Expand Up @@ -1727,41 +1727,41 @@ <h3>3.2 Visualising predominant pitch<a class="headerlink" href="#visualising-pr
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{82.40364421278775: &#39;D2&#39;,
164.8072884255755: &#39;D2&#39;,
329.614576851151: &#39;D2&#39;,
659.229153702302: &#39;D2&#39;,
1318.458307404604: &#39;D2&#39;,
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>{73.4133009992652: &#39;P&#39;,
146.8266019985304: &#39;P&#39;,
293.6532039970608: &#39;P&#39;,
587.3064079941216: &#39;P&#39;,
1174.6128159882435: &#39;P&#39;,
58.268175617345825: &#39;G2&#39;,
116.53635123469165: &#39;G2&#39;,
233.0727024693833: &#39;G2&#39;,
466.1454049387666: &#39;G2&#39;,
932.2908098775332: &#39;G2&#39;,
48.9975: &#39;S&#39;,
97.995: &#39;S&#39;,
195.99: &#39;S&#39;,
391.98: &#39;S&#39;,
783.96: &#39;S&#39;,
54.997834212038505: &#39;R2&#39;,
109.99566842407701: &#39;R2&#39;,
219.99133684815402: &#39;R2&#39;,
439.98267369630804: &#39;R2&#39;,
879.965347392616: &#39;R2&#39;,
73.4133009992652: &#39;P&#39;,
146.8266019985304: &#39;P&#39;,
293.6532039970608: &#39;P&#39;,
587.3064079941216: &#39;P&#39;,
1174.6128159882435: &#39;P&#39;,
65.40381575469627: &#39;M1&#39;,
130.80763150939254: &#39;M1&#39;,
261.6152630187851: &#39;M1&#39;,
523.2305260375701: &#39;M1&#39;,
1046.46105207514: &#39;M1&#39;,
87.30361988416256: &#39;N2&#39;,
174.60723976832512: &#39;N2&#39;,
349.21447953665023: &#39;N2&#39;,
698.4289590733005: &#39;N2&#39;,
1396.857918146601: &#39;N2&#39;,
58.268175617345825: &#39;G2&#39;,
116.53635123469165: &#39;G2&#39;,
233.0727024693833: &#39;G2&#39;,
466.1454049387666: &#39;G2&#39;,
932.2908098775332: &#39;G2&#39;}
65.40381575469627: &#39;M1&#39;,
130.80763150939254: &#39;M1&#39;,
261.6152630187851: &#39;M1&#39;,
523.2305260375701: &#39;M1&#39;,
1046.46105207514: &#39;M1&#39;,
54.997834212038505: &#39;R2&#39;,
109.99566842407701: &#39;R2&#39;,
219.99133684815402: &#39;R2&#39;,
439.98267369630804: &#39;R2&#39;,
879.965347392616: &#39;R2&#39;,
82.40364421278775: &#39;D2&#39;,
164.8072884255755: &#39;D2&#39;,
329.614576851151: &#39;D2&#39;,
659.229153702302: &#39;D2&#39;,
1318.458307404604: &#39;D2&#39;}
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -2200,7 +2200,7 @@ <h4>Fixing tonic errors in folded plots<a class="headerlink" href="#fixing-tonic
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f0b1cebfa30&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7fa32814a550&gt;]
</pre></div>
</div>
<img alt="../_images/exploring-raga_110_1.png" src="../_images/exploring-raga_110_1.png" />
Expand Down Expand Up @@ -2317,7 +2317,7 @@ <h4>Fixing tonic errors in folded plots<a class="headerlink" href="#fixing-tonic
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7f0b1cebafa0&gt;]
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[&lt;matplotlib.lines.Line2D at 0x7fa32813ef70&gt;]
</pre></div>
</div>
<img alt="../_images/exploring-raga_120_1.png" src="../_images/exploring-raga_120_1.png" />
Expand Down Expand Up @@ -2666,8 +2666,8 @@ <h3>3.5 Pitch density across rāga<a class="headerlink" href="#pitch-density-acr
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Rītigauḷa: {&#39;D2&#39;, &#39;S&#39;, &#39;R2&#39;, &#39;P&#39;, &#39;M1&#39;, &#39;N2&#39;, &#39;G2&#39;}
Bhairavi: {&#39;D2&#39;, &#39;S&#39;, &#39;R2&#39;, &#39;P&#39;, &#39;M1&#39;, &#39;D1&#39;, &#39;N2&#39;, &#39;G2&#39;}
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Rītigauḷa: {&#39;P&#39;, &#39;G2&#39;, &#39;S&#39;, &#39;N2&#39;, &#39;M1&#39;, &#39;R2&#39;, &#39;D2&#39;}
Bhairavi: {&#39;D1&#39;, &#39;P&#39;, &#39;G2&#39;, &#39;S&#39;, &#39;N2&#39;, &#39;M1&#39;, &#39;R2&#39;, &#39;D2&#39;}
</pre></div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions melodic_analysis/pitch-extraction.html
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ <h2>FTANet-Carnatic<a class="headerlink" href="#ftanet-carnatic" title="Permalin
<span class="n">y</span> <span class="o">=</span> <span class="n">y</span><span class="p">[:</span><span class="mi">3</span><span class="o">*</span><span class="n">sr</span><span class="p">]</span> <span class="c1"># Getting just the first 3 seconds</span>

<span class="c1"># Predict!</span>
<span class="n">ftanet_pitch_track</span> <span class="o">=</span> <span class="n">ftanet_carnatic</span><span class="o">.</span><span class="n">predict</span><span class="p">(</span><span class="n">example</span><span class="o">.</span><span class="n">audio_path</span><span class="p">)</span>
<span class="n">melodia_pitch_track</span> <span class="o">=</span> <span class="n">melodia</span><span class="o">.</span><span class="n">extract</span><span class="p">(</span><span class="n">example</span><span class="o">.</span><span class="n">audio_path</span><span class="p">)</span>
<span class="n">ftanet_pitch_track</span> <span class="o">=</span> <span class="n">ftanet_carnatic</span><span class="o">.</span><span class="n">predict</span><span class="p">(</span><span class="n">y</span><span class="p">)</span>
<span class="n">melodia_pitch_track</span> <span class="o">=</span> <span class="n">melodia</span><span class="o">.</span><span class="n">extract</span><span class="p">(</span><span class="n">y</span><span class="p">)</span>
</pre></div>
</div>
</div>
Expand Down
11 changes: 4 additions & 7 deletions melodic_analysis/raga-recognition.html
Original file line number Diff line number Diff line change
Expand Up @@ -623,19 +623,16 @@ <h2> Contents </h2>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 0%| | 0.00/20.4M [00:00&lt;?, ?B/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 23%|██▎ | 4.72M/20.4M [00:00&lt;00:00, 23.4MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 23%|██▎ | 4.72M/20.4M [00:00&lt;00:00, 24.4MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 85%|████████▍ | 17.3M/20.4M [00:00&lt;00:00, 52.3MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span> 44%|████▎ | 8.91M/20.4M [00:00&lt;00:00, 24.6MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|██████████| 20.4M/20.4M [00:00&lt;00:00, 54.2MB/s]
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>100%|██████████| 20.4M/20.4M [00:00&lt;00:00, 49.2MB/s]
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[2023-11-29 19:40:46,109] WARNING [compiam.melody.raga_recognition.deepsrgm.download_model:155] Files downloaded and extracted successfully.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>[2023-11-29 20:10:05,919] WARNING [compiam.melody.raga_recognition.deepsrgm.download_model:155] Files downloaded and extracted successfully.
</pre></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

23 changes: 16 additions & 7 deletions separation/singing-voice-extraction.html

Large diffs are not rendered by default.

0 comments on commit e90cf06

Please sign in to comment.