Skip to content

Commit

Permalink
Addition of norm_eps (Project-MONAI#7962)
Browse files Browse the repository at this point in the history
Fixes # .

### Description

Addition of norm_eps to spade_autoencoderkl.py as per
Project-MONAI#7946.

### 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.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] 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: Virginia Fernandez <[email protected]>
Signed-off-by: Virginia Fernandez <[email protected]>
Co-authored-by: Virginia Fernandez <[email protected]>
Co-authored-by: Virginia Fernandez <[email protected]>
  • Loading branch information
3 people authored Jul 30, 2024
1 parent 2e53df7 commit 54019e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monai/networks/nets/spade_autoencoderkl.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(
label_nc=label_nc,
norm_nc=in_channels,
norm="GROUP",
norm_params={"num_groups": norm_num_groups, "affine": False},
norm_params={"num_groups": norm_num_groups, "affine": False, "eps": norm_eps},
hidden_channels=spade_intermediate_channels,
kernel_size=3,
spatial_dims=spatial_dims,
Expand All @@ -77,7 +77,7 @@ def __init__(
label_nc=label_nc,
norm_nc=out_channels,
norm="GROUP",
norm_params={"num_groups": norm_num_groups, "affine": False},
norm_params={"num_groups": norm_num_groups, "affine": False, "eps": norm_eps},
hidden_channels=spade_intermediate_channels,
kernel_size=3,
spatial_dims=spatial_dims,
Expand Down

0 comments on commit 54019e4

Please sign in to comment.