Skip to content

v0.8.0

Compare
Choose a tag to compare
@sammlapp sammlapp released this 12 Jan 21:40
· 973 commits to master since this release
827233f

OpenSoundscape 0.8.0 Release

This release represent a substantial update to opensoundscape, containing new features, bug fixes, and breaking changes to some parts of the API.

New Features:

The notebook New in OpenSoundscape 0.8.0 summarizes many of the new features, with code examples. New features include:

  • logging progress of model training and prediction to Weights and Biases
  • writing mp3 files (thanks to soundfile 1.1.0)
  • training CNNs on long audio files without splitting into clips
  • updated Audio metadata reading and writing
  • Audio classmethods noise and silence
  • Audio method normalize
  • top level imports of most used classes. Eg, from opensoundscape import Audio, Spectrogram, CNN
  • debug preprocessing by asking train() and predict() by passing raise_errors=True to raise instead of catch Preprocessing errors
  • option to keep all intermediate versions of preprocessed sample with preprocessor.forward(...,trace=True)
  • new augmentations in actions module: audio_random_gain and audio_add_noise
  • added support for EfficientNet architecture
  • new Audio object properties for .rms and .dBFS

Breaking changes:

  • Audio.duration is now a property (use .duration not .duration()), as are several Spectrogram attributes that were previously methods
  • CNN.predict() now only returns one argument, the dataframe of scores. Optionally, return a second argument with invalid samples list. Use predict_multi_target_labels or predict_single_target_labels from the metrics module to generate 0/1 outputs from continuous scores.
  • a few arguments to functions have changed names and order

Merged Pull Requests

Full Changelog: v0.7.1...v0.8.0