Repository navigation
Expand file tree
/
Copy pathsample_config.json
More file actions
72 lines (72 loc) · 2.29 KB
/
Copy pathsample_config.json
File metadata and controls
72 lines (72 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"description": "DDPM Unsupervised Anomaly Detection inference with simplex noise (3D slice by slice)",
"input_folder": "your_input_folder/",
"output_folder": "your_output_folder/",
"gpu_device": 1,
"sequence": "ADC",
"save_segmentations": true,
"segmentation_threshold":0.04,
"already_preprocessed": true,
"save_preprocessed_images": true,
"use_post_processing": true,
"replace_files": true,
"image_size": 128,
"nb_inferences":1,
"models_folder":"models/",
"noise": {
"type": "simplex",
"schedule":"cosine",
"simplex_octaves":6,
"simplex_persistence":0.8,
"simplex_frequency":64,
"normalize": false,
"num_timesteps_full_noise": 1000,
"num_timesteps_inference": 130
},
"post_processing": {
"median_filter_size": 5,
"erosion_dilation_steps": 4,
"fill_holes": true
},
"num_workers": 8,
"spatial_dims": 2,
"slice_indexes_start":22,
"slice_indexes_end": 94,
"val_transforms": {
"_target_": "monai.transforms.Compose",
"transforms": [
{
"_target_": "monai.transforms.LoadImage", "image_only": true
},
{
"_target_": "monai.transforms.EnsureChannelFirst"
},
{
"_target_": "monai.transforms.ResizeWithPadOrCrop", "spatial_size":["@image_size", "@image_size", "@image_size"]
},
{
"_target_": "utils.custom_transforms.ScaleIntensityFromHistogramPeak", "target_value": 200.0, "bins": 1000
},
{
"_target_": "monai.transforms.ScaleIntensityRange", "a_min":0.0, "a_max":700.0, "b_min":0.0, "b_max":1.0, "clip":true
},
{
"_target_": "utils.custom_transforms.SetBackgroundToZero"
}
]
},
"network_def": {
"_target_": "monai.networks.nets.DiffusionModelUNet",
"spatial_dims": "@spatial_dims",
"in_channels": 1,
"out_channels": 1,
"channels":[32, 64, 64, 64],
"attention_levels":[false, true, true, true],
"num_head_channels":8,
"use_flash_attention":true
},
"thor": {
"enable": false,
"nb_timesteps_harmonization": 7
}
}