MIScnn icon indicating copy to clipboard operation
MIScnn copied to clipboard

Prediction image dimensions.

Open lcaronson opened this issue 4 years ago • 1 comments
trafficstars

Hello,

Is there any way to adjust this input image dimensions?

dimension_error

Clearly, case_00300 has different dimensions, compared to the rest of the dataset. Thus, I see the following error:

more_dimension_error

Any help would be greatly appreciated!

lcaronson avatar Jul 14 '21 19:07 lcaronson

Hi @lcaronson,

there are two ways which pop in my mind:

  1. Fixing this beforehand via loading the suspicious cases and switch the axis via NumPy. This is the way, I would highly recommend as it is probably the most cleanest approach to do it in the 'data exploration & preparation' step of your machine learning pipeline.
  2. Fixing this via a subfunction by check any case during the preprocessing if the axes are correct and if not, switch the first one with the z-axis.

Cheers, Dominik

muellerdo avatar Jul 16 '21 16:07 muellerdo