Skip to content

Commit 5aa42f2

Browse files
Update monai/networks/layers/filtering.py
Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com> Signed-off-by: Abdoulaye Diallo <113793273+getrichthroughcode@users.noreply.github.com>
1 parent 0185168 commit 5aa42f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

monai/networks/layers/filtering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def __init__(self, spatial_sigma, color_sigma):
220220
spatial_sigma = [spatial_sigma[0], spatial_sigma[1], spatial_sigma[2]]
221221
self.len_spatial_sigma = 3
222222
else:
223-
raise ValueError(f"len(spatial_sigma) {spatial_sigma} must match number of spatial dims (1, 2 or 3).")
223+
raise ValueError(f"Length of `spatial_sigma` must match number of spatial dims (1, 2 or 3) or be a single float value ({spatial_sigma=}).")
224224

225225
# Register sigmas as trainable parameters.
226226
self.sigma_x = torch.nn.Parameter(torch.tensor(spatial_sigma[0]))

0 commit comments

Comments
 (0)