From 207c331924af9b2e293e850346ea1c544c6d60d4 Mon Sep 17 00:00:00 2001 From: cokedong <408244909@qq.com> Date: Mon, 10 Oct 2022 14:54:11 +0800 Subject: [PATCH] Fix lint --- mmcv/ops/prroi_pool.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mmcv/ops/prroi_pool.py b/mmcv/ops/prroi_pool.py index 63427a4ba3..2fe040bd88 100644 --- a/mmcv/ops/prroi_pool.py +++ b/mmcv/ops/prroi_pool.py @@ -33,10 +33,9 @@ def forward(ctx, output_size: Tuple, spatial_scale: float = 1.0) -> torch.Tensor: if features.dtype() != torch.float or rois.dtype() != torch.float: - raise ValueError( - 'Precise RoI Pooling only takes float input, got ' - f'{features.dtype()} for features and' - f'{rois.dtype()} for rois.') + raise ValueError('Precise RoI Pooling only takes float input, got ' + f'{features.dtype()} for features and' + f'{rois.dtype()} for rois.') pooled_height = int(output_size[0]) pooled_width = int(output_size[1])