qiuqiangkong / piano_transcription_inference

336 stars 61 forks source link

No librosa.core attribute audio #16

Open kojikoji1 opened 1 year ago

kojikoji1 commented 1 year ago

[18]transcribe('Straight to the Heart.mp3', 'Straight to the Heart.mid')

AttributeError Traceback (most recent call last) in ----> 1 transcribe('Straight to the Heart.mp3', 'Straight to the Heart.mid')

2 frames /usr/local/lib/python3.9/dist-packages/lazy_loader/init.py in getattr(name) 86 return attr 87 else: ---> 88 raise AttributeError(f"No {package_name} attribute {name}") 89 90 def dir():

AttributeError: No librosa.core attribute audio

At last step{18], There was Error. How should I do?

ydak commented 1 year ago

@kojikoji1 This error is caused by a major version upgrade of the "librosa" module.

Someone is currently working on a workaround for the error.

As a temporary workaround, run ~pip install librosa=0.9.2~ pip install librosa==0.9.2 before pip install piano_transcription_inference

e.g. )

+ pip install librosa==0.9.2
  pip install piano_transcription_inference
trevorwelch commented 1 year ago

Should be pip install librosa==0.9.2, I think :)

ydak commented 1 year ago

Sorry, I typo'd it. pip install librosa==0.9.2 is correct.