def load_checkpoint(self, path: str):
    '\n        Load all information the current iteration from checkpoint \n        '
    LOGGER.text('Loading checkpoints...', level=LoggerObserver.INFO)
    state_dict = torch.load(path, map_location='cpu')
    self.iters = load_state_dict(self.iters, state_dict, 'iters')
    self.best_value = load_state_dict(self.best_value, state_dict, 'best_value')
    self.scaler = load_state_dict(self.scaler, state_dict, self.scaler.state_dict_key)
Load all information the current iteration from checkpoint
def load_checkpoint(self, path: str):
    '\n         \n        '
    LOGGER.text('Loading checkpoints...', level=LoggerObserver.INFO)
    state_dict = torch.load(path, map_location='cpu')
    self.iters = load_state_dict(self.iters, state_dict, 'iters')
    self.best_value = load_state_dict(self.best_value, state_dict, 'best_value')
    self.scaler = load_state_dict(self.scaler, state_dict, self.scaler.state_dict_key)