def after_train_iter(self, runner):
        """After train epoch hook.

        Override default ``single_gpu_test``.
        """
        if self.by_epoch or not self.every_n_iters(runner, self.interval):
            return
        from annotator.uniformer.mmseg.apis import single_gpu_test
        runner.log_buffer.clear()
        results = single_gpu_test(
            runner.model,
            self.dataloader,
            show=False,
            efficient_test=self.efficient_test)
        self.evaluate(runner, results)
After train epoch hook.

        Override default ``single_gpu_test``.
        
ControlNet-v1-1-nightly/annotator/uniformer/mmseg/core/evaluation/eval_hooks.py