icon-lab / FDB

Official implementation of the Fourier-constrained diffusion bridges (FDB) model for MRI reconstruction
MIT License
25 stars 5 forks source link

Asking about dataset used #2

Open YuyangXueEd opened 10 months ago

YuyangXueEd commented 10 months ago

Hello,

Firstly, I'd like to commend you on the exceptional work you've done.

I am writing to seek your assistance concerning the specific data you utilized in your code. I have noticed that the IXI data was in NIFTI, and the FastMRI data using h5. However, when I examined the read_data.py code, I found it slightly challenging to discern exactly which dataset you employed.

Could you possibly shed light on which dataset was used in this instance? Your help with this matter would be greatly appreciated.

Thank you in advance for your cooperation.

usamamirza0 commented 10 months ago

Hello, The datasets we used had been saved as mat files containing fully sampled images, under-sampled images and under-sampling masks. The fastMRI dataset also contained coil sensitivity maps. In the file read_data.py, the data is read from the mat files and converted to numpy arrays of the required shape (mentioned in the comments). If your dataset is in a different format, you will have to modify the code to convert it to a numpy array. The shape must match for it to work with the rest of the code.

YuyangXueEd commented 10 months ago

Hello, thanks for your reply! I already obtained IXI and FastMRI data and they are in NIFTI and h5 format respectively. Would you mind sharing the format conversion or pre-processing code for the mat data? It would be wonderful and more easily to understand the code.

Looking forward to your reply!