Audio Learner

Learner which stacks tuples of TensorSpec or TensorMelSpec

source

StackSpecCallback

 StackSpecCallback (after_create=None, before_fit=None, before_epoch=None,
                    before_train=None, before_batch=None, after_pred=None,
                    after_loss=None, before_backward=None,
                    after_cancel_backward=None, after_backward=None,
                    before_step=None, after_cancel_step=None,
                    after_step=None, after_cancel_batch=None,
                    after_batch=None, after_cancel_train=None,
                    after_train=None, before_validate=None,
                    after_cancel_validate=None, after_validate=None,
                    after_cancel_epoch=None, after_epoch=None,
                    after_cancel_fit=None, after_fit=None)

Stacks tuples of TensorSpec or TensorMelSpec. ToDo: add resizing


source

audio_learner

 audio_learner (dls, model, loss_func=None, opt_func=<function Adam>,
                lr=0.001, splitter=<function trainable_params>, cbs=None,
                metrics=None, path=None, model_dir='models', wd=None,
                wd_bn_bias=False, train_bn=True, moms=(0.95, 0.85, 0.95))

An Audio specific Learner that stacks tuples of TensorSpec or TensorMelSpec