Skip to content

Commit

Permalink
Default predict() to the default model path from __init__.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
drubinstein committed Apr 19, 2024
1 parent 3505516 commit 6ec8658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions basic_pitch/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from typing import Any, Dict, Iterable, List, Optional, Sequence, Tuple, Union, cast


from basic_pitch import CT_PRESENT, ONNX_PRESENT, TF_PRESENT, TFLITE_PRESENT
from basic_pitch import CT_PRESENT, ICASSP_2022_MODEL_PATH, ONNX_PRESENT, TF_PRESENT, TFLITE_PRESENT

try:
import tensorflow as tf
Expand Down Expand Up @@ -413,7 +413,7 @@ def save_note_events(

def predict(
audio_path: Union[pathlib.Path, str],
model_or_model_path: Union[Model, pathlib.Path, str],
model_or_model_path: Union[Model, pathlib.Path, str] = ICASSP_2022_MODEL_PATH,
onset_threshold: float = 0.5,
frame_threshold: float = 0.3,
minimum_note_length: float = 127.70,
Expand Down

0 comments on commit 6ec8658

Please sign in to comment.