Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question for train phase #1

Open
MaoFuyou opened this issue Jan 14, 2025 · 2 comments
Open

Question for train phase #1

MaoFuyou opened this issue Jan 14, 2025 · 2 comments

Comments

@MaoFuyou
Copy link

I want to ask about the input of training phase only x is regarded as the input? what is the colimap, mask and target?In the whole phase when they are used?

@bilalkabas
Copy link
Collaborator

Hi,

For MRI reconstruction:

  • mask: undersampling pattern in k-space
  • x_us: undersampled input image
  • x_fs: fully-sampled image (ground truth, target)
  • coilmap: coil sensitivity maps in multi-coil MRI

x_us is the input image to the network. mask and coilmap are used in data-consistency layers. x_fs is the reconstruction target in supervised training.

MambaRoll/main.py

Lines 80 to 93 in 763f140

def training_step_mri(self, batch):
""" Supervised MRI reconstruction training step """
x_fs, x_us, mask, coilmap, _ = batch
# Supervised training
x_fs = torch.cat((x_fs.real, x_fs.imag), dim=1)
x_us_cc = (torch.conj(coilmap) * x_us).sum(axis=1, keepdim=True)
x_recon = self.net(
x=torch.cat([x_us_cc.real, x_us_cc.imag], dim=1),
target=x_us,
mask=mask,
coilmap=coilmap
)

@MaoFuyou
Copy link
Author

Ok, thank your for your explanation! And I want to ask if I have the BraTS2021 dataset and including (T1, T1Gd, T2, T2-FLAIR) and seg mask. How can I get it coresponding mask and coilmap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants