if self.every_n_train_iters(runner, self.interval): assert torch.isfinite(outputs['loss']), \ runner.logger.info('loss become infinite or NaN!') 参考:https://mmdetection.readthedocs.io/zh_CN/3.x/advanced_guides/customize_runtime.html...