Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
36b7247
Porting of 2D ControlNet tutorial using DDPM and ControlNet to guide …
Sep 4, 2024
f1dbc6c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
5e0059b
Removing blank line at end of file.
Sep 4, 2024
65bc4c6
Merge remote-tracking branch 'origin/main' into main
Sep 4, 2024
bfa92c9
Removing blank line at end of file.
Sep 4, 2024
536745a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 4, 2024
906fb05
Fix flake8 issues to ControlNet.
Sep 5, 2024
cf723c8
Merge remote-tracking branch 'origin/main' into main
Sep 5, 2024
4f139d8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 5, 2024
bd0d765
Set download to True.
Sep 6, 2024
ee99e97
Merge branch 'main' into main
KumoLiu Sep 6, 2024
ef6c972
Change call to autocast.
Sep 6, 2024
fbbd937
Merge remote-tracking branch 'origin/main' into main
Sep 6, 2024
b63c863
Merge branch 'Project-MONAI:main' into main
virginiafdez Sep 6, 2024
fa99612
Change call to autocast.
Sep 6, 2024
95e0026
Merge branch 'main' into main
KumoLiu Sep 6, 2024
079532c
Addition of ControlNet to the README.
Sep 6, 2024
8491dfa
Addition of tutorials for the 2D and 3D autoencoderkl.
Sep 9, 2024
14fa31f
Merge branch 'Project-MONAI:main' into main
virginiafdez Sep 9, 2024
d6aec13
Addition of tutorials for the 2D and 3D autoencoderkl tutorials. Pass…
Sep 9, 2024
8eec20d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 9, 2024
c7a243e
Incorporate suggestions made by Eric (fix of tempfile import and use,…
Sep 11, 2024
e5fba2b
Re-run 3D models to ensure that losses go down.
Sep 11, 2024
c01dacb
Merge branch 'Project-MONAI:main' into main
virginiafdez Sep 16, 2024
433fd62
Adding autoencoder info to README.
Sep 16, 2024
524ef2f
Merge branch 'Project-MONAI:main' into main
virginiafdez Sep 18, 2024
f9f329c
Fix issue with the plots for autoencoder tutorials. Add anomaly detec…
Sep 18, 2024
5145843
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 18, 2024
57ab963
Add download = True to 3D NB.
Sep 20, 2024
dfc1ebf
Tweak for the number of samples to render
ericspod Sep 20, 2024
699446d
Fix
ericspod Sep 20, 2024
92bee49
Fix
ericspod Sep 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
785 changes: 785 additions & 0 deletions generation/2d_autoencoderkl/2d_autoencoderkl_tutorial.ipynb

Large diffs are not rendered by default.

793 changes: 793 additions & 0 deletions generation/3d_autoencoderkl/3d_autoencoderkl_tutorial.ipynb

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,12 @@ Example shows how to use a DDPM to inpaint of 2D images from the MedNIST dataset

## [Guiding the 2D diffusion synthesis using ControlNet](./controlnet/2d_controlnet.ipynb)
Example shows how to use ControlNet to condition a diffusion model trained on 2D brain MRI images on binary brain masks.

## [Spatial variational autoencoder for 2D modelling and synthesis](./2d_autoencoderkl)
Example shows the use cases of applying a spatial VAE to a 2D synthesis example. To obtain realistic results, the model is trained on the original VAE losses, as well as perceptual and adversarial ones.

## [Spatial variational autoencoder for 3D modelling and synthesis](./3d_autoencoderkl)
Example shows the use cases of applying a spatial VAE to a 3D synthesis example. To obtain realistic results, the model is trained on the original VAE losses, as well as perceptual and adversarial ones.

## Performing anomaly detection with diffusion models: [implicit guidance](./anomaly_detection/2d_classifierfree_guidance_anomalydetection_tutorial.ipynb), [using transformers](./anomaly_detection/anomaly_detection_with_transformers.ipynb) and [classifier free guidance](./anomaly_detection/anomalydetection_tutorial_classifier_guidance.ipynb)
Examples show how to perform anomaly detection in 2D, using implicit guidance [2D-classifier free guiance](./anomaly_detection/2d_classifierfree_guidance_anomalydetection_tutorial.ipynb), transformers [using transformers](./anomaly_detection/anomaly_detection_with_transformers.ipynb) and [classifier free guidance](./anomalydetection_tutorial_classifier_guidance).