Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help me solve serious errors/crashes #2

Open
asigalov61 opened this issue Oct 19, 2020 · 0 comments
Open

Please help me solve serious errors/crashes #2

asigalov61 opened this issue Oct 19, 2020 · 0 comments

Comments

@asigalov61
Copy link

Hey,

I finished my Google Colab with your code/repo but unfortunately, I was not yet able to execute it and see the results due to critical errors/crashes.

https://github.com/asigalov61/Tegridy-MIDI-Dataset/blob/master/Advanced_MIR_Tool.ipynb

Here is the consistent error that I get on any combination of settings:

If you can/know how to fix this issue, I will be very grateful for your help.

Thank you.

`You chose to evaluate voicing training with stft using test data
Here we go!
Splitting Train and Test Sets..........Done
Extracting Training Features..........
---------------------------------------------------------------------------
RemoteTraceback                           Traceback (most recent call last)
RemoteTraceback: 
"""
Traceback (most recent call last):
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 119, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.6/multiprocessing/pool.py", line 47, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File "<ipython-input-37-01ebe4b81a52>", line 106, in load_and_normalize
    sr=target_sr, mono=True)  # or 'kaiser_best'
  File "/usr/local/lib/python3.6/dist-packages/librosa/core/audio.py", line 119, in load
    with audioread.audio_open(os.path.realpath(path)) as input_file:
  File "/usr/lib/python3.6/posixpath.py", line 394, in realpath
    filename = os.fspath(filename)
TypeError: expected str, bytes or os.PathLike object, not NoneType
"""

The above exception was the direct cause of the following exception:

TypeError                                 Traceback (most recent call last)
<ipython-input-38-5bcf2d2ed0c9> in <module>()
     17 
     18 print('Extracting Training Features..........')
---> 19 all_training_data = normalize_all(n_func, train)
     20 to_remove, train_counts = common_pitches(all_training_data, 50)
     21 print('Extracting Training Features..........Done')

2 frames
<ipython-input-37-01ebe4b81a52> in normalize_all(n_func, train_or_test)
     85 
     86     with Pool(processes=num_processes) as pool:
---> 87         feature_dict = pool.starmap(load_and_normalize, func_with_data)
     88 
     89     return feature_dict

/usr/lib/python3.6/multiprocessing/pool.py in starmap(self, func, iterable, chunksize)
    272         `func` and (a, b) becomes func(a, b).
    273         '''
--> 274         return self._map_async(func, iterable, starmapstar, chunksize).get()
    275 
    276     def starmap_async(self, func, iterable, chunksize=None, callback=None,

/usr/lib/python3.6/multiprocessing/pool.py in get(self, timeout)
    642             return self._value
    643         else:
--> 644             raise self._value
    645 
    646     def _set(self, i, obj):

TypeError: expected str, bytes or os.PathLike object, not NoneType`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant