fastMRI

Contrast issue with the Knee datasets

Dear Organizer,
I have a question related to fastMRI knee datasets. Since they are from two different contrasts (PD, PDFS), how can we get the information about the contrast of a particular dataset? (if we know the file name, how can we know about its contrast PD or PDFS)
Thanks,
Ke

Hello, you can get the contrast from the attrs of the .h5 file.

with h5py.File('my_knee_file.h5', 'r') as hf:
    acquisition = hf.attrs['acquisition']

For a PD scan acquisition will have PD in it, PDFS for PDFS.

Awesome! Thanks for your help