Skip to content

Commit

Permalink
add mido install for colab
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosCancino-Chacon committed Oct 21, 2024
1 parent d2444ca commit 2e87f7b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
9 changes: 7 additions & 2 deletions notebooks/02_alignment/Symbolic_Music_Alignment.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
" IN_COLAB = False\n",
"\n",
"if IN_COLAB:\n",
" # Issues on Colab with newer versions of MIDO\n",
" # this install should be removed after the following\n",
" # pull request is accepted in MIDO\n",
" # https://github.com/mido/mido/pull/584\n",
" ! pip install mido==1.2.10\n",
" # Install partitura\n",
" ! pip install partitura\n",
" ! pip install fastdtw\n",
Expand Down Expand Up @@ -1568,7 +1573,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1582,7 +1587,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down
9 changes: 7 additions & 2 deletions notebooks/03_mlflow/pitch_spelling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@
" IN_COLAB = False\n",
"\n",
"if IN_COLAB:\n",
" # Issues on Colab with newer versions of MIDO\n",
" # this install should be removed after the following\n",
" # pull request is accepted in MIDO\n",
" # https://github.com/mido/mido/pull/584\n",
" ! pip install mido==1.2.10\n",
"\t!pip install git+https://github.com/cpjku/partitura.git@develop\n",
"\t!pip install pytorch_lightning"
]
Expand Down Expand Up @@ -970,7 +975,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -984,7 +989,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down
9 changes: 7 additions & 2 deletions notebooks/04_generation/Drum_Generation_Transformer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
" IN_COLAB = False\n",
"\n",
"if IN_COLAB:\n",
" # Issues on Colab with newer versions of MIDO\n",
" # this install should be removed after the following\n",
" # pull request is accepted in MIDO\n",
" # https://github.com/mido/mido/pull/584\n",
" ! pip install mido==1.2.10\n",
" !pip install partitura\n",
" !git clone https://github.com/cpjku/partitura_tutorial\n",
" import sys\n",
Expand Down Expand Up @@ -1589,7 +1594,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand All @@ -1603,7 +1608,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.16"
"version": "3.7.10"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 2e87f7b

Please sign in to comment.