forked from Project-MONAI/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config_train_32g.json
62 lines (62 loc) · 1.68 KB
/
config_train_32g.json
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
{
"channel": 0,
"spatial_dims": 2,
"image_channels": 1,
"latent_channels": 1,
"sample_axis": 2,
"autoencoder_def": {
"_target_": "generative.networks.nets.AutoencoderKL",
"spatial_dims": "@spatial_dims",
"in_channels": "$@image_channels",
"out_channels": "@image_channels",
"latent_channels": "@latent_channels",
"num_channels": [
64,
128,
256
],
"num_res_blocks": 2,
"norm_num_groups": 32,
"norm_eps": 1e-06,
"attention_levels": [
false,
false,
false
],
"with_encoder_nonlocal_attn": true,
"with_decoder_nonlocal_attn": true
},
"autoencoder_train": {
"batch_size": 26,
"patch_size": [240,240],
"lr": 5e-5,
"perceptual_weight": 1.0,
"kl_weight": 1e-6,
"recon_loss": "l1",
"n_epochs": 1000,
"val_interval": 1
},
"diffusion_def": {
"_target_": "generative.networks.nets.DiffusionModelUNet",
"spatial_dims": "@spatial_dims",
"in_channels": "@latent_channels",
"out_channels": "@latent_channels",
"num_channels":[32, 64, 128, 256],
"attention_levels":[false, true, true, true],
"num_head_channels":[0, 32, 32, 32],
"num_res_blocks": 2
},
"diffusion_train": {
"batch_size": 80,
"patch_size": [256,256],
"lr": 1e-5,
"n_epochs": 1500,
"val_interval": 2,
"lr_scheduler_milestones": [1000]
},
"NoiseScheduler": {
"num_train_timesteps": 1000,
"beta_start": 0.0015,
"beta_end": 0.0195
}
}