LituRout commited on
Commit
5fd3a18
1 Parent(s): 2f1d50b

add dps config

Browse files
diffusion-posterior-sampling/configs/box_inpainting_config.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.5
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: inpainting
13
+ mask_opt:
14
+ mask_type: box
15
+ mask_len_range: !!python/tuple [127, 128] # for box
16
+ # mask_prob_range: !!python/tuple [0.3, 0.7] # for random
17
+ image_size: 256
18
+
19
+
20
+ noise:
21
+ name: gaussian
22
+ sigma: 0.05
diffusion-posterior-sampling/configs/box_inpainting_config_psld.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.5
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: inpainting
13
+ mask_opt:
14
+ mask_type: box
15
+ mask_len_range: !!python/tuple [256, 257] # for box
16
+ # mask_prob_range: !!python/tuple [0.3, 0.7] # for random
17
+ image_size: 512
18
+
19
+
20
+ noise:
21
+ name: gaussian
22
+ sigma: 0.05
diffusion-posterior-sampling/configs/diffusion_config.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ sampler: ddpm
2
+ steps: 1000
3
+ noise_schedule: linear
4
+ model_mean_type: epsilon
5
+ model_var_type: learned_range
6
+ dynamic_threshold: False
7
+ clip_denoised: True
8
+ rescale_timesteps: False
9
+ timestep_respacing: 1000
diffusion-posterior-sampling/configs/gaussian_deblur_config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: gaussian_blur
13
+ kernel_size: 61
14
+ intensity: 3.0
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05
diffusion-posterior-sampling/configs/gaussian_deblur_config_psld.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: gaussian_blur
13
+ kernel_size: 121
14
+ intensity: 3.0
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05
diffusion-posterior-sampling/configs/imagenet_model_config.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Defaults for image training.
2
+
3
+ image_size: 256
4
+ num_channels: 256
5
+ num_res_blocks: 2
6
+ channel_mult: ""
7
+ learn_sigma: True
8
+ class_cond: False
9
+ use_checkpoint: False
10
+ attention_resolutions: "32,16,8"
11
+ num_heads: 4
12
+ num_head_channels: 64
13
+ num_heads_upsample: -1
14
+ use_scale_shift_norm: True
15
+ dropout: 0.0
16
+ resblock_updown: True
17
+ use_fp16: False
18
+ use_new_attention_order: False
19
+
20
+ model_path: models/imagenet256.pt
diffusion-posterior-sampling/configs/inpainting_config.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.5
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: inpainting
13
+ mask_opt:
14
+ mask_type: random
15
+ # mask_len_range: !!python/tuple [128, 129] # for box
16
+ mask_prob_range: !!python/tuple [0.3, 0.7] # for random
17
+ image_size: 256
18
+
19
+
20
+ noise:
21
+ name: gaussian
22
+ sigma: 0.05
diffusion-posterior-sampling/configs/inpainting_config_psld.yaml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.5
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: inpainting
13
+ mask_opt:
14
+ mask_type: random
15
+ # mask_len_range: !!python/tuple [128, 129] # for box
16
+ mask_prob_range: !!python/tuple [0.3, 0.7] # for random
17
+ image_size: 512
18
+
19
+
20
+ noise:
21
+ name: gaussian
22
+ sigma: 0.05
diffusion-posterior-sampling/configs/model_config.yaml ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Defaults for image training.
2
+
3
+ image_size: 256
4
+ num_channels: 128
5
+ num_res_blocks: 1
6
+ channel_mult: ""
7
+ learn_sigma: True
8
+ class_cond: False
9
+ use_checkpoint: False
10
+ attention_resolutions: 16
11
+ num_heads: 4
12
+ num_head_channels: 64
13
+ num_heads_upsample: -1
14
+ use_scale_shift_norm: True
15
+ dropout: 0.0
16
+ resblock_updown: True
17
+ use_fp16: False
18
+ use_new_attention_order: False
19
+
20
+ model_path: models/ffhq_10m.pt
diffusion-posterior-sampling/configs/motion_deblur_config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: motion_blur
13
+ kernel_size: 61
14
+ intensity: 0.5
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05
diffusion-posterior-sampling/configs/motion_deblur_config_psld.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: motion_blur
13
+ kernel_size: 121
14
+ intensity: 0.5
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05
diffusion-posterior-sampling/configs/nonlinear_deblur_config.yaml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: nonlinear_blur
13
+ opt_yml_path: ./bkse/options/generate_blur/default.yml
14
+
15
+ noise:
16
+ name: gaussian
17
+ sigma: 0.05
diffusion-posterior-sampling/configs/phase_retrieval_config.yaml ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 1.0
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: phase_retrieval
13
+ oversample: 2.0
14
+
15
+ noise:
16
+ name: gaussian
17
+ sigma: 0.05
diffusion-posterior-sampling/configs/super_resolution_config.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: super_resolution
13
+ in_shape: !!python/tuple [1, 3, 256, 256]
14
+ scale_factor: 4
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05
diffusion-posterior-sampling/configs/super_resolution_config_psld.yaml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ conditioning:
2
+ method: ps
3
+ params:
4
+ scale: 0.3
5
+
6
+ data:
7
+ name: ffhq
8
+ root: ./data/samples/
9
+
10
+ measurement:
11
+ operator:
12
+ name: super_resolution
13
+ in_shape: !!python/tuple [1, 3, 512, 512]
14
+ scale_factor: 4
15
+
16
+ noise:
17
+ name: gaussian
18
+ sigma: 0.05