Skip to content

ROGER gives nan loss when running with EPI #3

@mfaizan-ai

Description

@mfaizan-ai

@mylyu thank you so much for your assistance and the incredible work.

With reference to #1 you mentioned that I should stack the data on readout axis and add CAIPI shift, so I did the same when I run the ROGER inference with the weights that you shared, it gives NaN with loss values and the reconstructed images are blank and does not show anything after running the inference.

Here is what I do:

  1. I have the single band reference data
  2. correcting the phase / nyquist ghost for both sms and single band
  3. estimating coil sensitivity maps as you did in fastMRI_step1.ipynb
  4. simulating single band data to my EPI data (teh simulated data should look identical to my EPI data). So I first do CAIPI shifts in phase encoding axis (PE) with [0, 0.5, 1, 1.5]-->[0, 32, 64, 96) using np.roll() function in image space (shifts are in pixels as my image spatial dims are 64x64). Then convert to kspace to simulate sms data and added. This matches my sms data and successfully reconstructed it and EPI using slice GRAPPA and spit slice grappa.
  5. I followed the procedure in the fastMRI_step2.ipynb to create caipi shifts and stack from the data in step 3, but I had to customise it to match my sms data. So the result image that I got from this step is shown below.
Image

so my sms data looks like this in a scan.

Image

this is how my single band reference data looks like:

Image

So Roger does not work with it? What could be wrong? It works with your fastMRI simulated data. so it gives the loss like this

loss: nan; mean: nan; min: nan; max: nan; :  14%|███████████▎                                                                        | 135/1000 [00:14<01:31,  9.49it/s]loss: nan; mean: nan; min: nan; max: nan; :  14%|███████████▎                                                                        | 135/1000 [00:14<01:35,  9.08it/s]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions