bezzam commited on
Commit
a6fd2af
·
verified ·
1 Parent(s): b2a1d95

Upload 177 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ recon_epochBEST filter=lfs diff=lfs merge=lfs -text
.hydra/config.yaml ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ wandb_project: multilens_ambient
2
+ seed: 0
3
+ start_delay: null
4
+ files:
5
+ cache_dir: /dev/shm
6
+ dataset: Lensless/MultiLens-Mirflickr-Ambient
7
+ huggingface_dataset: true
8
+ huggingface_psf: psf.png
9
+ single_channel_psf: false
10
+ hf_simulated: false
11
+ split_seed: null
12
+ n_files: null
13
+ test_size: null
14
+ downsample: 1
15
+ downsample_lensed: 2
16
+ input_snr: null
17
+ background_fp: null
18
+ background_snr_range: null
19
+ vertical_shift: null
20
+ horizontal_shift: null
21
+ rotate: false
22
+ flipud: false
23
+ flip_lensed: false
24
+ save_psf: true
25
+ crop: null
26
+ image_res:
27
+ - 600
28
+ - 600
29
+ extra_eval: null
30
+ force_rgb: false
31
+ simulate_lensless: false
32
+ random_flip: false
33
+ random_rotate: false
34
+ random_shifts: false
35
+ alignment:
36
+ top_left:
37
+ - 118
38
+ - 220
39
+ height: 123
40
+ torch: true
41
+ torch_device: cuda:2
42
+ device_ids:
43
+ - 2
44
+ - 3
45
+ - 1
46
+ - 0
47
+ measure: null
48
+ eval_disp_idx:
49
+ - 1
50
+ - 2
51
+ - 4
52
+ - 5
53
+ - 9
54
+ display:
55
+ plot: true
56
+ gamma: null
57
+ save: true
58
+ reconstruction:
59
+ init: null
60
+ method: trainable_inv
61
+ skip_unrolled: false
62
+ init_processors: null
63
+ init_pre: true
64
+ init_post: true
65
+ direct_background_subtraction: true
66
+ learned_background_subtraction: false
67
+ integrated_background_subtraction: false
68
+ down_subtraction: false
69
+ integrated_background_unetres: false
70
+ unetres_input_background: false
71
+ unrolled_fista:
72
+ n_iter: 20
73
+ tk: 1
74
+ learn_tk: true
75
+ unrolled_admm:
76
+ n_iter: 5
77
+ mu1: 0.0001
78
+ mu2: 0.0001
79
+ mu3: 0.0001
80
+ tau: 0.0002
81
+ trainable_inv:
82
+ K: 0.0001
83
+ multi_wiener:
84
+ nc:
85
+ - 64
86
+ - 128
87
+ - 256
88
+ - 512
89
+ - 512
90
+ pre_process:
91
+ network: null
92
+ depth: 4
93
+ nc:
94
+ - 32
95
+ - 64
96
+ - 116
97
+ - 128
98
+ delay: null
99
+ freeze: null
100
+ unfreeze: null
101
+ post_process:
102
+ network: UnetRes
103
+ depth: 4
104
+ nc:
105
+ - 32
106
+ - 64
107
+ - 128
108
+ - 255
109
+ delay: null
110
+ freeze: null
111
+ unfreeze: null
112
+ train_last_layer: false
113
+ compensation: null
114
+ compensation_residual: true
115
+ trainable_mask:
116
+ mask_type: TrainablePSF
117
+ initial_value: psf
118
+ grayscale: false
119
+ mask_lr: 0.001
120
+ optimizer: Adam
121
+ L1_strength: 1.0
122
+ target: object_plane
123
+ simulation:
124
+ grayscale: false
125
+ output_dim: null
126
+ object_height: 0.04
127
+ flip: true
128
+ random_shift: false
129
+ random_vflip: 0.5
130
+ random_hflip: 0.5
131
+ random_rotate: false
132
+ scene2mask: 0.1
133
+ mask2sensor: 0.009
134
+ deadspace: true
135
+ use_waveprop: false
136
+ sensor: rpi_hq
137
+ snr_db: 10
138
+ downsample: 8
139
+ quantize: false
140
+ max_val: 255
141
+ training:
142
+ batch_size: 4
143
+ epoch: 25
144
+ eval_batch_size: 4
145
+ metric_for_best_model: null
146
+ save_every: null
147
+ skip_NAN: true
148
+ clip_grad: 1.0
149
+ crop_preloss: false
150
+ optimizer:
151
+ type: AdamW
152
+ lr: 0.0001
153
+ lr_step_epoch: true
154
+ final_lr: false
155
+ exp_decay: false
156
+ slow_start: false
157
+ cosine_decay_warmup: true
158
+ step: false
159
+ gamma: 0.1
160
+ loss: l2
161
+ lpips: 1.0
162
+ unrolled_output_factor: false
163
+ pre_proc_aux: false
.hydra/hydra.yaml ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - reconstruction.direct_background_subtraction=True
116
+ - reconstruction.pre_process.network=null
117
+ - reconstruction.post_process.nc=[32,64,128,255]
118
+ - torch_device=cuda:2
119
+ - device_ids=[2,3,1,0]
120
+ - reconstruction.method=trainable_inv
121
+ - trainable_mask.mask_type=TrainablePSF
122
+ job:
123
+ name: train_learning_based
124
+ chdir: true
125
+ override_dirname: device_ids=[2,3,1,0],reconstruction.direct_background_subtraction=True,reconstruction.method=trainable_inv,reconstruction.post_process.nc=[32,64,128,255],reconstruction.pre_process.network=null,torch_device=cuda:2,trainable_mask.mask_type=TrainablePSF
126
+ id: ???
127
+ num: ???
128
+ config_name: train_mirflickr_multilens_ambient
129
+ env_set: {}
130
+ env_copy: []
131
+ config:
132
+ override_dirname:
133
+ kv_sep: '='
134
+ item_sep: ','
135
+ exclude_keys: []
136
+ runtime:
137
+ version: 1.3.2
138
+ version_base: '1.3'
139
+ cwd: /root/FORKS/LenslessPiCamStefan
140
+ config_sources:
141
+ - path: hydra.conf
142
+ schema: pkg
143
+ provider: hydra
144
+ - path: /root/FORKS/LenslessPiCamStefan/configs
145
+ schema: file
146
+ provider: main
147
+ - path: ''
148
+ schema: structured
149
+ provider: schema
150
+ output_dir: /root/FORKS/LenslessPiCamStefan/outputs/2024-09-07/08-06-12
151
+ choices:
152
+ hydra/env: default
153
+ hydra/callbacks: null
154
+ hydra/job_logging: default
155
+ hydra/hydra_logging: default
156
+ hydra/hydra_help: default
157
+ hydra/help: default
158
+ hydra/sweeper: basic
159
+ hydra/launcher: basic
160
+ hydra/output: default
161
+ verbose: false
.hydra/overrides.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ - reconstruction.direct_background_subtraction=True
2
+ - reconstruction.pre_process.network=null
3
+ - reconstruction.post_process.nc=[32,64,128,255]
4
+ - torch_device=cuda:2
5
+ - device_ids=[2,3,1,0]
6
+ - reconstruction.method=trainable_inv
7
+ - trainable_mask.mask_type=TrainablePSF
eval_recon/0/1.png ADDED
eval_recon/0/2.png ADDED
eval_recon/0/4.png ADDED
eval_recon/0/5.png ADDED
eval_recon/0/9.png ADDED
eval_recon/1/1.png ADDED
eval_recon/1/2.png ADDED
eval_recon/1/4.png ADDED
eval_recon/1/5.png ADDED
eval_recon/1/9.png ADDED
eval_recon/10/1.png ADDED
eval_recon/10/2.png ADDED
eval_recon/10/4.png ADDED
eval_recon/10/5.png ADDED
eval_recon/10/9.png ADDED
eval_recon/11/1.png ADDED
eval_recon/11/2.png ADDED
eval_recon/11/4.png ADDED
eval_recon/11/5.png ADDED
eval_recon/11/9.png ADDED
eval_recon/12/1.png ADDED
eval_recon/12/2.png ADDED
eval_recon/12/4.png ADDED
eval_recon/12/5.png ADDED
eval_recon/12/9.png ADDED
eval_recon/13/1.png ADDED
eval_recon/13/2.png ADDED
eval_recon/13/4.png ADDED
eval_recon/13/5.png ADDED
eval_recon/13/9.png ADDED
eval_recon/14/1.png ADDED
eval_recon/14/2.png ADDED
eval_recon/14/4.png ADDED
eval_recon/14/5.png ADDED
eval_recon/14/9.png ADDED
eval_recon/15/1.png ADDED
eval_recon/15/2.png ADDED
eval_recon/15/4.png ADDED
eval_recon/15/5.png ADDED
eval_recon/15/9.png ADDED
eval_recon/16/1.png ADDED
eval_recon/16/2.png ADDED
eval_recon/16/4.png ADDED
eval_recon/16/5.png ADDED
eval_recon/16/9.png ADDED
eval_recon/17/1.png ADDED