Skip to content

Commit 07a6d00

Browse files
authored
Merge branch 'main' into omniverse-tutorial
2 parents 7dd8a4b + 6da8f4e commit 07a6d00

16 files changed

+1234
-23
lines changed

generation/2d_diffusion_autoencoder/2d_diffusion_autoencoder_tutorial.ipynb

Lines changed: 884 additions & 0 deletions
Large diffs are not rendered by default.

generation/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ Examples show how to perform anomaly detection in 2D, using implicit guidance [2
7878

7979
## 2D super-resolution using diffusion models: [using torch](./2d_super_resolution/2d_sd_super_resolution.ipynb) and [using torch lightning](./2d_super_resolution/2d_sd_super_resolution_lightning.ipynb).
8080
Examples show how to perform super-resolution in 2D, using PyTorch and PyTorch Lightning.
81+
82+
## [Guiding the synthetic process using a semantic encoder](./2d_diffusion_autoencoder/2d_diffusion_autoencoder.ipynb)
83+
Example shows how to train a DDPM and an encoder simultaneously, resulting in the latents of the encoder guiding the inference process of the DDPM.

generation/anomaly_detection/2d_classifierfree_guidance_anomalydetection_tutorial.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@
426426
},
427427
"source": [
428428
"condition_dropout = 0.15\n",
429-
"max_epochs = 2e4\n",
429+
"max_epochs = 20000\n",
430430
"batch_size = 64\n",
431431
"val_interval = 100\n",
432432
"iter_loss_list = []\n",

generation/maisi/README.md

Lines changed: 104 additions & 17 deletions
Large diffs are not rendered by default.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
256,
10+
256,
11+
128
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
1.5,
17+
1.5,
18+
4.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [96,96,96],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 2
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
256,
10+
256,
11+
256
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
1.5,
17+
1.5,
18+
2.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [48,48,64],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 2
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
512,
10+
512,
11+
128
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
0.75,
17+
0.75,
18+
4.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [64,64,32],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 1
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
256,
10+
256,
11+
256
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
1.5,
17+
1.5,
18+
2.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [64,64,64],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 4
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
512,
10+
512,
11+
128
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
0.75,
17+
0.75,
18+
4.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [80,80,32],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 1
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"num_output_samples": 1,
3+
"body_region": ["abdomen"],
4+
"anatomy_list": ["liver","hepatic tumor"],
5+
"controllable_anatomy_size": [],
6+
"num_inference_steps": 1000,
7+
"mask_generation_num_inference_steps": 1000,
8+
"output_size": [
9+
512,
10+
512,
11+
512
12+
],
13+
"image_output_ext": ".nii.gz",
14+
"label_output_ext": ".nii.gz",
15+
"spacing": [
16+
0.75,
17+
0.75,
18+
1.0
19+
],
20+
"autoencoder_sliding_window_infer_size": [64,64,48],
21+
"autoencoder_sliding_window_infer_overlap": 0.25,
22+
"autoencoder_tp_num_splits": 2
23+
}

0 commit comments

Comments
 (0)