Skip to content

Commit

Permalink
Use kwargs for librosa.chirp.
Browse files Browse the repository at this point in the history
  • Loading branch information
psobot committed Aug 8, 2024
1 parent cc38d05 commit d7082c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/layers/test_nnaudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def test_cqt_trainable_layers_change_on_training(train: bool) -> None:

model.compile(loss="mse")
if train:
signal = librosa.chirp(32.70, TEST_SAMPLE_RATE, length=TEST_SAMPLE_RATE * 10, linear=True)
signal = librosa.chirp(
fmin=32.70, fmax=TEST_SAMPLE_RATE, length=TEST_SAMPLE_RATE * 10, linear=True
)
noise = np.random.rand(*signal.shape).astype(signal.dtype)

model.fit(np.array([signal, noise]), np.array([1, 0]), epochs=10, verbose=0)
Expand Down

0 comments on commit d7082c5

Please sign in to comment.