Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Propagate kernel size through attention Attention-UNet (Project-MONAI…
…#7734) Fixes Project-MONAI#7726. ### Description Passes the `kernel_size` parameter to `ConvBlocks` within Attention UNet, creating a net with the expected number of parameters. Using the example in Project-MONAI#7726 on this branch: ``` from monai.networks.nets import AttentionUnet model = AttentionUnet( spatial_dims = 2, in_channels = 1, out_channels = 1, channels = (2, 4, 8, 16), strides = (2,2,2), kernel_size = 5, up_kernel_size = 5 ) ``` outputs the expected values: ``` Total params: 18,846 Trainable params: 18,846 Non-trainable params: 0 Total mult-adds (M): 0.37 ``` ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [x] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [x] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: Peter Kaplinsky <[email protected]> Co-authored-by: Peter Kaplinsky <[email protected]>
- Loading branch information