Music-and-Culture-Technology-Lab / omnizart

Omniscient Mozart, being able to transcribe everything in the music, including vocal, drum, chord, beat, instruments, and more.
https://music-and-culture-technology-lab.github.io/omnizart-doc/
MIT License
1.63k stars 99 forks source link

This program simply doesn't work... #92

Open jeanlopes opened 1 year ago

jeanlopes commented 1 year ago

I pulled a docker image and just ran it.

This is the error:

2023-03-23 20:26:41 Loading model... 2023-03-23 20:26:41 Using built-in model /usr/local/lib/python3.6/dist-packages/omnizart/checkpoints/music/music_piano for transcription. 2023-03-23 20:26:49 Extracting feature... Traceback (most recent call last): File "/usr/local/bin/omnizart", line 5, in entry() File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in call return self.main(args, kwargs) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke return callback(args, kwargs) File "/usr/local/lib/python3.6/dist-packages/omnizart/cli/music/transcribe.py", line 30, in transcribe music.app.transcribe(input_audio, model_path, output=output) File "/usr/local/lib/python3.6/dist-packages/omnizart/music/app.py", line 108, in transcribe harmonic=model_settings.feature.harmonic File "/usr/local/lib/python3.6/dist-packages/omnizart/feature/wrapper_func.py", line 23, in extract_cfpfeature z, spec, gcos, ceps, = cfp.extract_cfp(audio_path, kwargs) File "/usr/local/lib/python3.6/dist-packages/omnizart/feature/cfp.py", line 306, in extract_cfp return _extract_cfp(x, fs, down_fs=fs, **kwargs) File "/usr/local/lib/python3.6/dist-packages/omnizart/feature/cfp.py", line 234, in _extract_cfp x, samples, max_sample, fr, fs, Hop, h, fc, tc, g, bin_per_octave File "/usr/local/lib/python3.6/dist-packages/omnizart/feature/cfp.py", line 167, in parallel_extract for idx, (feat_list, slice_idx) in feat_generator: File "/usr/local/lib/python3.6/dist-packages/omnizart/utils.py", line 266, in parallel_generator yield future.result(), future_to_input[future] File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result return self.get_result() File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in get_result raise self._exception concurrent.futures.process.BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending.