问题定位
MeVisLab 读取nii.gz 图像报错:
Function unknown: Message itk::ERROR: NiftiImageIO(000001918E21BAE0): Unknown component type: 0: Handling itk::ERROR: NiftiImageIO(000001918E21BAE0): Unknown component type: 0 Loaded data may be undefined.
解决方案
检查网络输出结果:
对channel取argmax
打印输出图片与label类型dtype
更改网络输出图像类型为float32即可