bezzam HF Staff commited on
Commit
6a16e1d
·
verified ·
1 Parent(s): b1359cc

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