I have converted dicom files into npy format. This error has been resolved. However, I am trying to train for rotation task, I am getting below error.
File "C:\Users\RAMCHANDRA CHEKE\self-supervised-3d-tasks\self_supervised_3d_tasks\preprocessing\preprocess_rotation.py", line 52, in rotate_batch_3d
volume = np.flip(np.transpose(volume, (0, 2, 1, 3)), 1) # 90 deg X
File "<__array_function__ internals>", line 6, in transpose
File "C:\ram\miniconda3\envs\conda-env\lib\site-packages\numpy\core\fromnumeric.py", line 653, in transpose
return _wrapfunc(a, 'transpose', axes)
File "C:\ram\miniconda3\envs\conda-env\lib\site-packages\numpy\core\fromnumeric.py", line 58, in _wrapfunc
return bound(*args, **kwds)
ValueError: axes don't match array
What is the expected input for this programe like image format and its shape.
Hi,
I have converted dicom files into npy format. This error has been resolved. However, I am trying to train for rotation task, I am getting below error.
File "C:\Users\RAMCHANDRA CHEKE\self-supervised-3d-tasks\self_supervised_3d_tasks\preprocessing\preprocess_rotation.py", line 52, in rotate_batch_3d volume = np.flip(np.transpose(volume, (0, 2, 1, 3)), 1) # 90 deg X File "<__array_function__ internals>", line 6, in transpose File "C:\ram\miniconda3\envs\conda-env\lib\site-packages\numpy\core\fromnumeric.py", line 653, in transpose return _wrapfunc(a, 'transpose', axes) File "C:\ram\miniconda3\envs\conda-env\lib\site-packages\numpy\core\fromnumeric.py", line 58, in _wrapfunc return bound(*args, **kwds) ValueError: axes don't match array
What is the expected input for this programe like image format and its shape.
Thanks a million. Ram