Onset and Frames Colab broken?

189 views
Skip to first unread message

Gregory Cavendish

unread,
Mar 26, 2021, 4:25:44 AM3/26/21
to Magenta Discuss
I'm trying to run https://colab.research.google.com/notebooks/magenta/onsets_frames_transcription/onsets_frames_transcription.ipynb , but I encounter the following error while trying to run the "Initialize Model" step (after running the previous cells, of course.) I am leaving the default MAESTRO model selected.

Please advise how to get past this error?

Thanks

--------------------------------------------------------------------------- RecursionError Traceback (most recent call last) <ipython-input-7-c5abee1023f2> in <module>() 1 #@title Initialize Model 2 import tensorflow.compat.v1 as tf ----> 3 import librosa 4 import numpy as np 5
6 frames
/usr/local/lib/python3.7/dist-packages/librosa/__init__.py in <module>() 10 # And all the librosa sub-modules 11 from ._cache import cache ---> 12 from . import core 13 from . import beat 14 from . import decompose /usr/local/lib/python3.7/dist-packages/librosa/core/__init__.py in <module>() 124 125 from .time_frequency import * # pylint: disable=wildcard-import --> 126 from .audio import * # pylint: disable=wildcard-import 127 from .spectrum import * # pylint: disable=wildcard-import 128 from .pitch import * # pylint: disable=wildcard-import /usr/local/lib/python3.7/dist-packages/librosa/core/audio.py in <module>() 8 import warnings 9 ---> 10 import soundfile as sf 11 import audioread 12 import numpy as np /usr/local/lib/python3.7/dist-packages/soundfile.py in <module>() 138 139 try: --> 140 _libname = _find_library('sndfile') 141 if _libname is None: 142 raise OSError('sndfile library not found') <ipython-input-6-ffe7eac60a13> in proxy_find_library(lib) 26 return 'libfluidsynth.so.1' 27 else: ---> 28 return orig_ctypes_util_find_library(lib) 29 ctypes.util.find_library = proxy_find_library <ipython-input-2-ffe7eac60a13> in proxy_find_library(lib) 26 return 'libfluidsynth.so.1' 27 else: ---> 28 return orig_ctypes_util_find_library(lib) 29 ctypes.util.find_library = proxy_find_library ... last 1 frames repeated, from the frame below ... <ipython-input-2-ffe7eac60a13> in proxy_find_library(lib) 26 return 'libfluidsynth.so.1' 27 else: ---> 28 return orig_ctypes_util_find_library(lib) 29 ctypes.util.find_library = proxy_find_library RecursionError: maximum recursion depth exceeded in comparison

Ian Simon

unread,
Mar 27, 2021, 4:53:31 PM3/27/21
to Gregory Cavendish, Magenta Discuss
For now, you can remove the lines following "Hack to allow python to pick up the newly-installed fluidsynth lib" in the Setup Environment cell and everything should work again.

-Ian

--
Magenta project: magenta.tensorflow.org
To post to this group, send email to magenta...@tensorflow.org
To unsubscribe from this group, send email to magenta-discu...@tensorflow.org
---
To unsubscribe from this group and stop receiving emails from it, send an email to magenta-discu...@tensorflow.org.

Gregory Cavendish

unread,
Mar 29, 2021, 12:43:29 AM3/29/21
to Magenta Discuss, Ian Simon, Magenta Discuss, Gregory Cavendish
Thanks! 

For the record, I passed https://www.youtube.com/watch?v=_bjAwW7tTxQ through Magenta colab and the results were very impressive! Not perfect, but far, far better than any other (free?) transcription I've been able to come across, and more than good enough as a 95%-there starting point for hand-adjusting the rest. (Interestingly, significantly better than the Magenta JS demo as well, as also noted here). TL;DR: Great work!
Reply all
Reply to author
Forward
0 new messages