Ketos v2.6 (includes non-backward compatible changes)
Copy-paste from the Changelog file:
- New :class:
MultiModalBatchGen <ketos.data_handling.data_feeding.MultiModalBatchGen>
class. - Fixed bug in :class:
BatchGenerator <ketos.data_handling.data_feeding.BatchGenerator>
related to loading of labels from separate annotation table. - :class:
AudioSelectionLoader <ketos.audio.audio_loader.AudioSelectionLoader>
ignores duration parameter in the audio representation dictionary. Also, the option to standardize selection window size across the selection table has been removed. This must now be done by the user before passing the selection table to the audio loader. - :meth:
create_database <ketos.data_handling.database_interface.create_database>
allows multiple audio representations to be specified as a nested dictionary, using keys as names for the data fields in the output table. - Changes to the interface and default behaviour of the :meth:
standardize <ketos.data_handling.selection_table.standardize>
method. - :class:
AudioSelectionLoader <ketos.audio.audio_loader.AudioSelectionLoader>
generalized to be able to handle new format for selection tables where a single selection may span several files. - Extended Python compatibility to <=3.9.12
- Modified (and simplified) :meth:
load_audio_for_spec <ketos.audio.spectrogram.load_audio_for_spec>
so that it re-uses :meth:from_wav <ketos.audio.waveform.Waveform.from_wav>
. - Added
pad_mode
argument to :meth:from_wav <ketos.audio.waveform.Waveform.from_wav>
class method. - Changed default behaviour of :meth:
num_samples <ketos.audio.utils.misc.pad_reflect>
to not invert the signal - Minor bug fix in :meth:
num_samples <ketos.audio.utils.misc.num_samples>
for rounding time intervals to integer number of samples. - New method :meth:
append <ketos.audio.waveform.merge>
for stitching together multiple waveforms - :meth:
append <ketos.audio.waveform.Waveform.append>
preserves duration - `from_wav`` methods can load from multiple audio files
- AudioLoader stores annotation start time and end time without truncation.
I believe this is now ready for review.