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

Example code doesn't work out of the box for 'predict_and_save' #144

Open
godofecht opened this issue Oct 11, 2024 · 1 comment
Open

Example code doesn't work out of the box for 'predict_and_save' #144

godofecht opened this issue Oct 11, 2024 · 1 comment

Comments

@godofecht
Copy link

from basic_pitch.inference import predict_and_save

predict_and_save(
    <input-audio-path-list>,
    <output-directory>,
    <save-midi>,
    <sonify-midi>,
    <save-model-outputs>,
    <save-notes>,
)

TypeError: predict_and_save() missing 1 required positional argument: 'model_or_model_path'

@pratikanilghadi
Copy link

pratikanilghadi commented Feb 11, 2025

Import the model from basic-pitch and pass it as argument :
from basic_pitch import ICASSP_2022_MODEL_PATH

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

2 participants