Skip to content

Commit

Permalink
Fixed FutureError warnings
Browse files Browse the repository at this point in the history
For tweetynet, fixed the liborsa warnings output by adding adtional augrement
  • Loading branch information
Sean1572 committed Jun 27, 2022
1 parent 361d27d commit ca4d4f5
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 151 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.ipynb_checkpoints
PyHa/__pycache__
PyHa/microfaune_package/microfaune/__pycache__
PyHa/tweetynet_package/tweetynet/__pycache__
PyHa/tweetynet_package/tweetynet/__pycache__
TEST/*
/mixed_bird/*
TEST/ScreamingPiha1.wav
TEST/ScreamingPiha1.wav
Binary file not shown.
2 changes: 1 addition & 1 deletion PyHa/tweetynet_package/tweetynet/TweetyNetAudio.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def create_spec(data, fs, n_mels=32, n_fft=2048, hop_len=1024):
"""
# Calculate spectrogram
S = librosa.feature.melspectrogram(
data, sr=fs, n_fft=n_fft, hop_length=hop_len, n_mels=n_mels)
y=data, sr=fs, n_fft=n_fft, hop_length=hop_len, n_mels=n_mels)
S = S.astype(np.float32)

# Convert power to dB
Expand Down
170 changes: 21 additions & 149 deletions PyHa_Testing.ipynb

Large diffs are not rendered by default.

0 comments on commit ca4d4f5

Please sign in to comment.