Skip to content

Commit

Permalink
fix test_full dynunet model error "kernel_size"
Browse files Browse the repository at this point in the history
  • Loading branch information
benmalef committed Jun 1, 2024
1 parent dec2b3b commit 86e4188
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testing/test_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ def test_train_segmentation_rad_3d(device):
parameters["model"]["converter_type"] = random.choice(
["acs", "soft", "conv3d"]
)

if model == "dynunet":
# More info: https://github.com/Project-MONAI/MONAI/blob/96bfda00c6bd290297f5e3514ea227c6be4d08b4/tests/test_dynunet.py
parameters["model"]["kernel_size"] = (3, 3, 3, 1)
parameters["model"]["strides"] = (1, 1, 1, 1)
parameters["model"]["deep_supervision"] = False
parameters["model"]["architecture"] = model
parameters["nested_training"]["testing"] = -5
parameters["nested_training"]["validation"] = -5
Expand Down

0 comments on commit 86e4188

Please sign in to comment.