-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Integrating a Tailored Diffusion U-Net Model into Generative Model Application #7867
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
Integrating a Tailored Diffusion U-Net Model into Generative Model Application #7867
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
for more information, see https://pre-commit.ci
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
…0122/MONAI into fix-issue-7858-add-unet
for more information, see https://pre-commit.ci
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
for more information, see https://pre-commit.ci
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
for more information, see https://pre-commit.ci
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: Dong Yang <yangd05@Dongs-MacBook-Pro.local>
for more information, see https://pre-commit.ci
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, few comments inline.
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
monai/apps/generation/maisi/networks/diffusion_model_unet_maisi.py
Outdated
Show resolved
Hide resolved
Signed-off-by: dongyang0122 <don.yang.mech@gmail.com>
/build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is good now. I'm not sure if referencing a specific commit in requirements-dev.txt is a good idea, we can do another "bug-fix" release of GenerativeModels later if this is a problem.
"generative.networks.nets.diffusion_model_unet", name="get_timestep_embedding" | ||
) | ||
get_up_block, has_get_up_block = optional_import("generative.networks.nets.diffusion_model_unet", name="get_up_block") | ||
xformers, has_xformers = optional_import("xformers") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dongyang0122 @KumoLiu , I think we need to either add xformers
into our requirements-dev, or remove this from the code.
P.S. As far as I know, the installation of xformers
is pretty nasty with nvidia DLFW pytorch container. It need to build from source and the compilation will somehow break/restart the machine if it hardwares are low profile.
Fixes #7858.
Integrating a tailored diffusion U-Net model into the generative model application to improve the production of high-dimensional 3D images, specifically sized at 512 x 512 x 512.
A few sentences describing the changes proposed in this pull request.
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.