diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-26 23:17:14 +0100 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-01-26 23:17:14 +0100 |
| commit | 9b6c99172f80b45030279e7268aaa80e5a1ed574 (patch) | |
| tree | 5049b225927e786dd462265ec8bca9a0f8084f18 /text_recognizer/networks/efficientnet/mbconv.py | |
| parent | 5e81d11e18cc28c383a30c10c53b8b477ada3c0a (diff) | |
fix: lint and format
Diffstat (limited to 'text_recognizer/networks/efficientnet/mbconv.py')
| -rw-r--r-- | text_recognizer/networks/efficientnet/mbconv.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/text_recognizer/networks/efficientnet/mbconv.py b/text_recognizer/networks/efficientnet/mbconv.py index 6324191..beb7d57 100644 --- a/text_recognizer/networks/efficientnet/mbconv.py +++ b/text_recognizer/networks/efficientnet/mbconv.py @@ -158,10 +158,7 @@ class MBConvBlock(nn.Module): def _configure_padding(self) -> Tuple[int, int, int, int]: """Set padding for convolutional layers.""" if self.stride == (2, 2): - return ( - (self.kernel_size - 1) // 2 - 1, - (self.kernel_size - 1) // 2, - ) * 2 + return ((self.kernel_size - 1) // 2 - 1, (self.kernel_size - 1) // 2,) * 2 return ((self.kernel_size - 1) // 2,) * 4 def __attrs_post_init__(self) -> None: |