def get_iter(self, runner, inner_iter=False):
        """Get the current training iteration step."""
        if self.by_epoch and inner_iter:
            current_iter = runner.inner_iter + 1
        else:
            current_iter = runner.iter + 1
        return current_iter
Get the current training iteration step.
ControlNet-v1-1-nightly/annotator/uniformer/mmcv/runner/hooks/logger/base.py