[Neuroimaging] Error to load all nii files from directory using Nibable
serafim loukas
seralouk at hotmail.com
Mon Nov 25 04:45:24 EST 2019
Hi,
Are you asking for code that just loads .nii files from a directory?
Like this:
```
myfiles = [i for i in os.listdir(".") if i.endswith(".nii")]
for image in range(len(myfiles)):
loaded_image = nib.load(os.path.abspath(myfiles[image]))
```
On 25 Nov 2019, at 07:55, Ali khattak <nawazktk99 at gmail.com<mailto:nawazktk99 at gmail.com>> wrote:
Hi
I am working on Alzheimer disease detection and classification using CNN which will solve the imbalance class and multi modality data to our network for that I am getting error in loading the data from my directory
I am using pytorch libraries for further processing
I am stuck in the dataloading module. I tried many dataloader and modules and also I used pytorch data loading codes and tutorials but I failed to execute in smooth way.
Please someone refer me a way to find the exact code and implementation to get out from this. I am trying from last one month please help me in this regard
Ali Nawaz
Software Engineer
Cell: 03358043653
Address: University of Engineering and Technology Taxila.
_______________________________________________
Neuroimaging mailing list
Neuroimaging at python.org<mailto:Neuroimaging at python.org>
https://mail.python.org/mailman/listinfo/neuroimaging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20191125/93e5622c/attachment.html>
More information about the Neuroimaging
mailing list