Hi trying to take baby steps on handling 3d image training and reading the above post. Trying to understand how to use:
def open(self, fn:PathOrStr)->Image:
Described above. The images are from MRNet and they are .npy files. I can read in each file to my Jupyter notebook with:
img_array = np.load('0000.npy')
The resulting array is (44, 256, 256). It is basically 44 slices of (1, 256, 256) images. So, if I want to view the last slice I run:
I am trying to use the datablock api and I think a custom ItemList as the first step. I initially tried:
mri_list = ObjectItemList.from_csv(path, 'train_knee_tiny.csv', folder='sagittal',
It runs but when I type mri_list I get:
OSError: cannot identify image file '.\\sagittal\\n0000.npy'
I guess that makes sense, since the ObjectItemList is looking for 2d images.
So, when I try to do the above just returning:
NameError: name 'ImageItemList' is not defined
So, I think I have some conceptual errors how this works. I am reading more (I just started lesson 7, so not sure of myself around the Datablock API and how to handle something that is seems like it is non-standard.