HealthML / self-supervised-3d-tasks

Apache License 2.0
185 stars 39 forks source link

Is this work with dicom files? #7

Closed ramchandracheke closed 3 years ago

ramchandracheke commented 3 years ago

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