Skip to content

Commit bbf09c2

Browse files
authored
fix: PNGConverterOperator uses the wrong axis dimension
1 parent bbc3894 commit bbf09c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/deploy/operators/png_converter_operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def convert_and_save(self, image, path):
4444
image_data = image.asnumpy()
4545
image_shape = image_data.shape
4646

47-
num_images = image_shape[0]
47+
num_images = image_shape[2]
4848

4949
for i in range(0, num_images):
5050
input_data = image_data[:, :, i]

0 commit comments

Comments
 (0)