From d1c33e955b7943b6f0684d789bfe1ec817f61b36 Mon Sep 17 00:00:00 2001 From: Yulv-git <34329208+Yulv-git@users.noreply.github.com> Date: Sun, 10 Apr 2022 00:01:13 +0800 Subject: [PATCH 1/2] Update _register_onnx_ops.py --- torchvision/ops/_register_onnx_ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/ops/_register_onnx_ops.py b/torchvision/ops/_register_onnx_ops.py index b3fac19cbf6..629c19c1646 100644 --- a/torchvision/ops/_register_onnx_ops.py +++ b/torchvision/ops/_register_onnx_ops.py @@ -38,7 +38,7 @@ def roi_align(g, input, rois, spatial_scale, pooled_height, pooled_width, sampli # ONNX doesn't support negative sampling_ratio if sampling_ratio < 0: warnings.warn( - "ONNX doesn't support negative sampling ratio, therefore is is set to 0 in order to be exported." + "ONNX doesn't support negative sampling ratio, therefore is set to 0 in order to be exported." ) sampling_ratio = 0 return g.op( From 923cb8c66b30f3824a51be73179882ff5cebf940 Mon Sep 17 00:00:00 2001 From: Yulv-git <34329208+Yulv-git@users.noreply.github.com> Date: Sun, 10 Apr 2022 00:02:32 +0800 Subject: [PATCH 2/2] Update misc.py --- torchvision/ops/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/torchvision/ops/misc.py b/torchvision/ops/misc.py index d4065172ea0..a4635099215 100644 --- a/torchvision/ops/misc.py +++ b/torchvision/ops/misc.py @@ -219,7 +219,7 @@ def __init__( class SqueezeExcitation(torch.nn.Module): """ This block implements the Squeeze-and-Excitation block from https://arxiv.org/abs/1709.01507 (see Fig. 1). - Parameters ``activation``, and ``scale_activation`` correspond to ``delta`` and ``sigma`` in in eq. 3. + Parameters ``activation``, and ``scale_activation`` correspond to ``delta`` and ``sigma`` in eq. 3. Args: input_channels (int): Number of channels in the input image