Closed paul-reiners closed 6 months ago
It has been a long time, since I worked on this project and fastai also underwent a lot of changes.
Please make sure you use the correct version of fastai.
If I remember correctly, the csv should filenames relative to the path
variable in the from_df
function. Try adding path='/'
Yes, that fixed it.
I have data that looks like this:
I then have this code:
which gives me this error while trying to process the first row:
TypeError: the path "home/feczk001/shared/projects/S1067_Loes/data/MNI-space_Loes_data/sub-5828KAFA_ses-20120620_space-MNI_mprageGd.nii.gz" is neither a valid directory nor a file
Note the missing '/' at the beginning of the file path in the error message. The leading '/' is not missing from the
file
column of the dataframe.