bezzam commited on
Commit
0ca3759
·
1 Parent(s): 41a27eb

Upload 3 files

Browse files
Files changed (3) hide show
  1. .hydra/config.yaml +99 -0
  2. .hydra/hydra.yaml +157 -0
  3. .hydra/overrides.yaml +3 -0
.hydra/config.yaml ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ seed: 0
2
+ files:
3
+ dataset: /scratch/bezzam/celeba/celeba_adafruit_random_30cm_2mm_20231004_26K
4
+ celeba_root: /scratch/bezzam
5
+ psf: outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png
6
+ diffusercam_psf: true
7
+ n_files: null
8
+ downsample: 2
9
+ test_size: 0.15
10
+ vertical_shift: -117
11
+ horizontal_shift: -25
12
+ crop:
13
+ vertical:
14
+ - 0
15
+ - 525
16
+ horizontal:
17
+ - 265
18
+ - 695
19
+ torch: true
20
+ torch_device: cuda
21
+ test_idx:
22
+ - 0
23
+ - 1
24
+ - 2
25
+ - 3
26
+ - 4
27
+ eval_disp_idx:
28
+ - 0
29
+ - 1
30
+ - 2
31
+ - 3
32
+ - 4
33
+ display:
34
+ plot: true
35
+ gamma: null
36
+ save: true
37
+ reconstruction:
38
+ method: unrolled_admm
39
+ unrolled_fista:
40
+ n_iter: 20
41
+ tk: 1
42
+ learn_tk: true
43
+ unrolled_admm:
44
+ n_iter: 10
45
+ mu1: 0.0001
46
+ mu2: 0.0001
47
+ mu3: 0.0001
48
+ tau: 0.0002
49
+ pre_process:
50
+ network: null
51
+ depth: 2
52
+ nc: null
53
+ post_process:
54
+ network: null
55
+ depth: 2
56
+ nc:
57
+ - 32
58
+ - 64
59
+ - 128
60
+ - 256
61
+ trainable_mask:
62
+ mask_type: null
63
+ initial_value: psf
64
+ grayscale: false
65
+ mask_lr: 0.001
66
+ L1_strength: 1.0
67
+ target: object_plane
68
+ simulation:
69
+ grayscale: false
70
+ output_dim: null
71
+ object_height: 0.33
72
+ flip: true
73
+ random_shift: false
74
+ random_vflip: false
75
+ random_hflip: false
76
+ random_rotate: false
77
+ scene2mask: 0.25
78
+ mask2sensor: 0.002
79
+ sensor: rpi_hq
80
+ snr_db: null
81
+ downsample: null
82
+ quantize: false
83
+ max_val: 255
84
+ training:
85
+ batch_size: 4
86
+ epoch: 50
87
+ eval_batch_size: 16
88
+ metric_for_best_model: null
89
+ save_every: null
90
+ skip_NAN: true
91
+ crop_preloss: true
92
+ optimizer:
93
+ type: Adam
94
+ lr: 0.0001
95
+ slow_start: false
96
+ step: false
97
+ gamma: 0.1
98
+ loss: l2
99
+ lpips: 1.0
.hydra/hydra.yaml ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ hydra:
2
+ run:
3
+ dir: outputs/${now:%Y-%m-%d}/${now:%H-%M-%S}
4
+ sweep:
5
+ dir: multirun/${now:%Y-%m-%d}/${now:%H-%M-%S}
6
+ subdir: ${hydra.job.num}
7
+ launcher:
8
+ _target_: hydra._internal.core_plugins.basic_launcher.BasicLauncher
9
+ sweeper:
10
+ _target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
11
+ max_batch_size: null
12
+ params: null
13
+ help:
14
+ app_name: ${hydra.job.name}
15
+ header: '${hydra.help.app_name} is powered by Hydra.
16
+
17
+ '
18
+ footer: 'Powered by Hydra (https://hydra.cc)
19
+
20
+ Use --hydra-help to view Hydra specific help
21
+
22
+ '
23
+ template: '${hydra.help.header}
24
+
25
+ == Configuration groups ==
26
+
27
+ Compose your configuration from those groups (group=option)
28
+
29
+
30
+ $APP_CONFIG_GROUPS
31
+
32
+
33
+ == Config ==
34
+
35
+ Override anything in the config (foo.bar=value)
36
+
37
+
38
+ $CONFIG
39
+
40
+
41
+ ${hydra.help.footer}
42
+
43
+ '
44
+ hydra_help:
45
+ template: 'Hydra (${hydra.runtime.version})
46
+
47
+ See https://hydra.cc for more info.
48
+
49
+
50
+ == Flags ==
51
+
52
+ $FLAGS_HELP
53
+
54
+
55
+ == Configuration groups ==
56
+
57
+ Compose your configuration from those groups (For example, append hydra/job_logging=disabled
58
+ to command line)
59
+
60
+
61
+ $HYDRA_CONFIG_GROUPS
62
+
63
+
64
+ Use ''--cfg hydra'' to Show the Hydra config.
65
+
66
+ '
67
+ hydra_help: ???
68
+ hydra_logging:
69
+ version: 1
70
+ formatters:
71
+ simple:
72
+ format: '[%(asctime)s][HYDRA] %(message)s'
73
+ handlers:
74
+ console:
75
+ class: logging.StreamHandler
76
+ formatter: simple
77
+ stream: ext://sys.stdout
78
+ root:
79
+ level: INFO
80
+ handlers:
81
+ - console
82
+ loggers:
83
+ logging_example:
84
+ level: DEBUG
85
+ disable_existing_loggers: false
86
+ job_logging:
87
+ version: 1
88
+ formatters:
89
+ simple:
90
+ format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
91
+ handlers:
92
+ console:
93
+ class: logging.StreamHandler
94
+ formatter: simple
95
+ stream: ext://sys.stdout
96
+ file:
97
+ class: logging.FileHandler
98
+ formatter: simple
99
+ filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
100
+ root:
101
+ level: INFO
102
+ handlers:
103
+ - console
104
+ - file
105
+ disable_existing_loggers: false
106
+ env: {}
107
+ mode: RUN
108
+ searchpath: []
109
+ callbacks: {}
110
+ output_subdir: .hydra
111
+ overrides:
112
+ hydra:
113
+ - hydra.mode=RUN
114
+ task:
115
+ - files.downsample=2
116
+ - training.batch_size=4
117
+ - files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png
118
+ job:
119
+ name: train_unrolled
120
+ chdir: true
121
+ override_dirname: files.downsample=2,files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png,training.batch_size=4
122
+ id: ???
123
+ num: ???
124
+ config_name: train_celeba_digicam
125
+ env_set: {}
126
+ env_copy: []
127
+ config:
128
+ override_dirname:
129
+ kv_sep: '='
130
+ item_sep: ','
131
+ exclude_keys: []
132
+ runtime:
133
+ version: 1.3.2
134
+ version_base: '1.3'
135
+ cwd: /home/bezzam/LenslessPiCam
136
+ config_sources:
137
+ - path: hydra.conf
138
+ schema: pkg
139
+ provider: hydra
140
+ - path: /home/bezzam/LenslessPiCam/configs
141
+ schema: file
142
+ provider: main
143
+ - path: ''
144
+ schema: structured
145
+ provider: schema
146
+ output_dir: /home/bezzam/LenslessPiCam/outputs/2023-10-25/10-07-42
147
+ choices:
148
+ hydra/env: default
149
+ hydra/callbacks: null
150
+ hydra/job_logging: default
151
+ hydra/hydra_logging: default
152
+ hydra/hydra_help: default
153
+ hydra/help: default
154
+ hydra/sweeper: basic
155
+ hydra/launcher: basic
156
+ hydra/output: default
157
+ verbose: false
.hydra/overrides.yaml ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ - files.downsample=2
2
+ - training.batch_size=4
3
+ - files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png