bezzam commited on
Commit
6adbdcb
·
verified ·
1 Parent(s): c992309

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