You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For images can be encoded as float32 with dimensions (X, Y, Z)
For segmentations should be encoded as binary masks with dimensions (X, Y, Z)
For segmentations: What do you mean by "encoded as binary masks"? that the array should be converted to an np.bool_?
This gives the following error with nifti (for me at least):
HeaderDataError: data dtype "<class 'numpy.bool_'>" not supported
Would for instance int8 be OK instead?
And of course in practice the label file will contain ones and zeros alone (I think this is what you mean by "binary encoding").
Hello
In your guide (https://github.com/microsoft/InnerEye-DeepLearning/blob/main/docs/creating_dataset.md) you write:
For segmentations: What do you mean by "encoded as binary masks"? that the array should be converted to an np.bool_?
This gives the following error with nifti (for me at least):
HeaderDataError: data dtype "<class 'numpy.bool_'>" not supported
Would for instance int8 be OK instead?
And of course in practice the label file will contain ones and zeros alone (I think this is what you mean by "binary encoding").
AB#5937