Skip to content

Commit aea9bcf

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 6af2225 commit aea9bcf

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
@@ -391,7 +391,7 @@ def __init__(self, spatial_sigma, color_sigma):
391391
spatial_sigma = [spatial_sigma[0], spatial_sigma[1], spatial_sigma[2]]
392392
self.len_spatial_sigma = 3
393393
else:
394-
raise ValueError(f"len(spatial_sigma) {spatial_sigma} must match number of spatial dims (1, 2, or 3).")
394+
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=}).")
395395

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

0 commit comments

Comments
 (0)