Skip to content

Commit 6af2225

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 5aa42f2 commit 6af2225

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
@@ -428,7 +428,7 @@ def forward(self, input_tensor, guidance_tensor):
428428
guidance_tensor = guidance_tensor.unsqueeze(4)
429429

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

433433
prediction = TrainableJointBilateralFilterFunction.apply(
434434
input_tensor, guidance_tensor, self.sigma_x, self.sigma_y, self.sigma_z, self.sigma_color

0 commit comments

Comments
 (0)