4d nifti files cannot load successfully #7188
Replies: 3 comments 4 replies
-
Hi @windyjunfeng, If 10 represents the channel dim, perhaps you should move it to the front and remove |
Beta Was this translation helpful? Give feedback.
-
@KumoLiu , thank you very much! Your solution works! However, I meet another problem when computing loss. The one hot function in networks/utils.py doesn't support multichannel in the label file. Could you please give some suggestions? Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
Hi @windyjunfeng, perhaps try argmax before sending to one-hot. MONAI/monai/transforms/post/array.py Line 142 in c3f9914 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I meet some tough problems when loading 4D nifti files. I use the UNETR network. It seems that it can support the 4D nifti file because in_channels can be set bigger than 1 according to the codes' comment section. But when I set in_channels as 10, the error occurs. I try to solve the problem, but it still doesn't work. Could you please provide some help? Thank you very much.


The 4D nifti file size is (256,256,23,10).
The training command is as follows:
The specific error is as follows:
Beta Was this translation helpful? Give feedback.
All reactions