Skip to content

Commit

Permalink
Develop (#2)
Browse files Browse the repository at this point in the history
* Increase dev version

* Minor bugfix
  • Loading branch information
jernsting authored Aug 12, 2021
1 parent bb66830 commit 707246e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/layers/spatial_attention.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Simple SpatialAttention for 2D filters.
| Parameter | type | Description |
| ----- | ----- | ----- |
| in_channels | int | Number of input channels|
| kernel_size | int, default=7 | Filter size vor CNN |
| kernel_size | int, default=7 | Filter size for convolution filter |
| batch_norm | bool, default=True | If true batch normalization is applied |

#### Return Value
Expand Down Expand Up @@ -36,7 +36,7 @@ Simple SpatialAttention for 3D filters.
| Parameter | type | Description |
| ----- | ----- | ----- |
| in_channels | int | Number of input channels|
| kernel_size | int, default=7 | Filter size for CNN |
| kernel_size | int, default=7 | Filter size for convolution filter |
| batch_norm | bool, default=True | If true batch normalization is applied |

#### Return Value
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use_setuptools()
from setuptools import setup, find_packages

__version__ = '0.0a0.dev1'
__version__ = '0.0a0.dev2'

with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
Expand Down
2 changes: 2 additions & 0 deletions useful_layers/layers/spatial_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def __init__(self,
"""
self.in_channels = in_channels
self.kernel_size = kernel_size
self.batch_norm = None
if batch_norm:
self.batch_norm = nn.BatchNorm2d
self.conv = nn.Conv2d
Expand All @@ -79,6 +80,7 @@ def __init__(self,
"""
self.in_channels = in_channels
self.kernel_size = kernel_size
self.batch_norm = None
if batch_norm:
self.batch_norm = nn.BatchNorm3d
self.conv = nn.Conv3d
Expand Down

0 comments on commit 707246e

Please sign in to comment.