src/yolo_network.py
def lr_schedule(self, epoch, lr):
        """Helper function to retrieve the scheduled learning rate based on epoch."""
        if epoch < self.LR_SCHEDULE[0][0] or epoch > self.LR_SCHEDULE[-1][0]:
            return lr
        for i in range(len(self.LR_SCHEDULE)):
            if epoch == self.LR_SCHEDULE[i][0]:
                return self.LR_SCHEDULE[i][1]
        return lr
Helper function to retrieve the scheduled learning rate based on epoch.
Helper function to retrieve the scheduled learning rate based on epoch.
Helper function to retrieve the scheduled learning rate based on epoch .
def lr_schedule(self, epoch, lr):
        if epoch < self.LR_SCHEDULE[0][0] or epoch > self.LR_SCHEDULE[-1][0]:
            return lr
        for i in range(len(self.LR_SCHEDULE)):
            if epoch == self.LR_SCHEDULE[i][0]:
                return self.LR_SCHEDULE[i][1]
        return lr
def lr_schedule ( self , epoch , lr ) : if epoch < self . LR_SCHEDULE [ 0 ] [ 0 ] or epoch > self . LR_SCHEDULE [ - 1 ] [ 0 ] : return lr for i in range ( len ( self . LR_SCHEDULE ) ) : if epoch == self . LR_SCHEDULE [ i ] [ 0 ] : return self . LR_SCHEDULE [ i ] [ 1 ] return lr
Helper function to retrieve the scheduled learning rate based on epoch.
Helper function to retrieve the scheduled learning rate based on epoch .
"""Helper function to retrieve the scheduled learning rate based on epoch."""
self
epoch
lr