Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 4f95c66

Browse files
add onnx dep, docstring tweak
1 parent a9b91f1 commit 4f95c66

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ dependencies:
77
- python=3.9
88
- pytorch>=1.10
99
- torchaudio
10+
- onnx
1011
- tensorboard
1112
- ipykernel
1213
- tensorboard

notepredictor/notepredictor/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def predict(self,
363363
"""
364364
consume the most recent note and return a prediction for the next note.
365365
366-
various constraints can be enforced on the next note.
366+
various constraints on the the next note can be requested.
367367
368368
Args:
369369
pitch: int. MIDI number of current note.
@@ -400,7 +400,7 @@ def predict(self,
400400
'pitch': int. predicted MIDI number of next note.
401401
'time': float. predicted time to next note.
402402
'velocity': float. unquantized predicted velocity of next note.
403-
'*_params': tensor. distrubution parameters for visualization purposes.
403+
'*_params': tensor. distribution parameters for visualization purposes.
404404
"""
405405
if (index_pitch is not None) and (pitch_temp is not None):
406406
print("warning: `index pitch` overrides `pitch_temp`")

0 commit comments

Comments
 (0)