def gather_callbacks(self, optimizer) -> list:
        """ Gather all the callbacks to be used in this training run """
        callbacks = [FrameTracker(self.total_frames), TimeTracker()]

        if self.scheduler_factory is not None:
            callbacks.append(self.scheduler_factory.instantiate(optimizer))

        callbacks.extend(self.callbacks)
        callbacks.extend(self.storage.streaming_callbacks())

        return callbacks
def gather_callbacks ( self , optimizer ) -> list : callbacks = [ FrameTracker ( self . total_frames ) , TimeTracker ( ) ] if self . scheduler_factory is not None : callbacks . append ( self . scheduler_factory . instantiate ( optimizer ) ) callbacks . extend ( self . callbacks ) callbacks . extend ( self . storage . streaming_callbacks ( ) ) return callbacks
Gather all the callbacks to be used in this training run