def before_train(self):
    if self.cfg.RESUME:
        directory = self.cfg.RESUME
        self.start_epoch = self.resume_model_if_exist(directory)
    self.init_writer(self.output_dir)
    self.time_start = time.time()
def before_train(self):
    if self.cfg.RESUME:
        directory = self.cfg.RESUME
        self.start_epoch = self.resume_model_if_exist(directory)
    self.init_writer(self.output_dir)
    self.time_start = time.time()