Skip to content

Commit 0185168

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 fced85b commit 0185168

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
@@ -250,7 +250,7 @@ def forward(self, input_tensor):
250250
input_tensor = input_tensor.unsqueeze(4)
251251

252252
if self.len_spatial_sigma != spatial_dims:
253-
raise ValueError(f"Spatial dimension ({spatial_dims}) must match initialized len(spatial_sigma).")
253+
raise ValueError(f"Number of spatial dimensions ({spatial_dims}) must match initialized `len(spatial_sigma)`.")
254254

255255
prediction = TrainableBilateralFilterFunction.apply(
256256
input_tensor, self.sigma_x, self.sigma_y, self.sigma_z, self.sigma_color

0 commit comments

Comments
 (0)