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

Questions about the third stage #30

Open
NwTbbetter opened this issue Mar 29, 2024 · 1 comment
Open

Questions about the third stage #30

NwTbbetter opened this issue Mar 29, 2024 · 1 comment

Comments

@NwTbbetter
Copy link

Hi, I'm having trouble understanding stage 3, can you give a brief description of how stage 3 works and what does continuous_sqrt_alpha_cumprod do once it's passed into the network?

@tiangexiang
Copy link
Collaborator

Thanks for your interest in our work! Stage3 is the generation process that tries to 'hallucinate' reasonable and coherent anatomical MRI details on the given MRI acquisition. After determining the location of a MRI slice within the diffusion Markov chain, one can use the Stage1 trained noise model to 'hack' the reverse diffusion process by using input noisy image as an intermediate diffusion posterior. In this way, a clean MRI slice can be inferred by starting from the intermediate state (noisy input slice) only, no need to start from the beginning (pure noise).
We follow a common DDPM implementation to train the diffusion model. continuous_sqrt_alpha_cumprod is used as an indicator of time stamp (which state it is within the Markov chain). As suggested in those common implementations, the denoising U-Net requires both noisy image and a time stamp indicator as inputs to be functional.

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