bezzam commited on
Commit
a990fdb
1 Parent(s): 2461b70

Upload 156 files

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.hydra/config.yaml CHANGED
@@ -1,37 +1,33 @@
1
  seed: 0
2
  start_delay: null
3
  files:
4
- dataset: /scratch/bezzam/celeba/celeba_adafruit_random_30cm_2mm_20231004_26K
5
- celeba_root: /scratch/bezzam
6
- psf: outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png
7
  diffusercam_psf: true
 
 
 
8
  n_files: null
9
  downsample: 2
10
  test_size: 0.15
11
- vertical_shift: -117
12
- horizontal_shift: -25
13
- crop:
14
- vertical:
15
- - 0
16
- - 525
17
- horizontal:
18
- - 265
19
- - 695
20
  torch: true
21
- torch_device: cuda
22
  measure: null
23
- test_idx:
24
- - 0
25
- - 1
26
- - 2
27
- - 3
28
- - 4
29
  eval_disp_idx:
30
  - 0
31
- - 1
32
  - 2
33
  - 3
34
  - 4
 
35
  display:
36
  plot: true
37
  gamma: null
@@ -39,6 +35,9 @@ save: true
39
  reconstruction:
40
  method: unrolled_admm
41
  skip_unrolled: false
 
 
 
42
  unrolled_fista:
43
  n_iter: 20
44
  tk: 1
@@ -49,6 +48,8 @@ reconstruction:
49
  mu2: 0.0001
50
  mu3: 0.0001
51
  tau: 0.0002
 
 
52
  pre_process:
53
  network: UnetRes
54
  depth: 4
@@ -77,28 +78,29 @@ trainable_mask:
77
  initial_value: psf
78
  grayscale: false
79
  mask_lr: 0.001
 
80
  L1_strength: 1.0
81
  target: object_plane
82
  simulation:
83
  grayscale: false
84
  output_dim: null
85
- object_height: 0.33
86
  flip: true
87
  random_shift: false
88
- random_vflip: false
89
- random_hflip: false
90
  random_rotate: false
91
- scene2mask: 0.25
92
- mask2sensor: 0.002
93
  sensor: rpi_hq
94
- snr_db: null
95
- downsample: null
96
  quantize: false
97
  max_val: 255
98
  training:
99
  batch_size: 4
100
  epoch: 25
101
- eval_batch_size: 16
102
  metric_for_best_model: null
103
  save_every: null
104
  skip_NAN: true
@@ -112,3 +114,29 @@ optimizer:
112
  gamma: 0.1
113
  loss: l2
114
  lpips: 1.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  seed: 0
2
  start_delay: null
3
  files:
4
+ dataset: bezzam/DigiCam-CelebA-26K
5
+ celeba_root: null
6
+ psf: data/psf/diffusercam_psf.tiff
7
  diffusercam_psf: true
8
+ huggingface_dataset: true
9
+ huggingface_psf: psf_simulated.png
10
+ split_seed: 0
11
  n_files: null
12
  downsample: 2
13
  test_size: 0.15
14
+ input_snr: null
15
+ vertical_shift: null
16
+ horizontal_shift: null
17
+ crop: null
18
+ image_res: null
19
+ extra_eval: null
20
+ rotate: true
21
+ save_psf: false
 
22
  torch: true
23
+ torch_device: cuda:0
24
  measure: null
 
 
 
 
 
 
25
  eval_disp_idx:
26
  - 0
 
27
  - 2
28
  - 3
29
  - 4
30
+ - 9
31
  display:
32
  plot: true
33
  gamma: null
 
35
  reconstruction:
36
  method: unrolled_admm
37
  skip_unrolled: false
38
+ init_processors: null
39
+ init_pre: true
40
+ init_post: true
41
  unrolled_fista:
42
  n_iter: 20
43
  tk: 1
 
48
  mu2: 0.0001
49
  mu3: 0.0001
50
  tau: 0.0002
51
+ trainable_inv:
52
+ K: 0.0001
53
  pre_process:
54
  network: UnetRes
55
  depth: 4
 
78
  initial_value: psf
79
  grayscale: false
80
  mask_lr: 0.001
81
+ optimizer: Adam
82
  L1_strength: 1.0
83
  target: object_plane
84
  simulation:
85
  grayscale: false
86
  output_dim: null
87
+ object_height: 0.04
88
  flip: true
89
  random_shift: false
90
+ random_vflip: 0.5
91
+ random_hflip: 0.5
92
  random_rotate: false
93
+ scene2mask: 0.1
94
+ mask2sensor: 0.009
95
  sensor: rpi_hq
96
+ snr_db: 10
97
+ downsample: 8
98
  quantize: false
99
  max_val: 255
100
  training:
101
  batch_size: 4
102
  epoch: 25
103
+ eval_batch_size: 4
104
  metric_for_best_model: null
105
  save_every: null
106
  skip_NAN: true
 
114
  gamma: 0.1
115
  loss: l2
116
  lpips: 1.0
117
+ unrolled_output_factor: false
118
+ device_ids:
119
+ - 0
120
+ - 1
121
+ - 2
122
+ - 3
123
+ alignment:
124
+ crop:
125
+ vertical:
126
+ - 0
127
+ - 525
128
+ horizontal:
129
+ - 265
130
+ - 695
131
+ simulation:
132
+ scene2mask: 0.25
133
+ mask2sensor: 0.002
134
+ object_height: 0.33
135
+ sensor: rpi_hq
136
+ snr_db: null
137
+ downsample: null
138
+ random_vflip: false
139
+ random_hflip: false
140
+ quantize: false
141
+ vertical_shift: -117
142
+ horizontal_shift: -25
.hydra/hydra.yaml CHANGED
@@ -113,21 +113,17 @@ hydra:
113
  - hydra.mode=RUN
114
  task:
115
  - files.downsample=2
116
- - files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png
117
  - training.batch_size=4
118
- - reconstruction.pre_process.network=UnetRes
119
- - reconstruction.pre_process.nc=[32,64,116,128]
120
- - reconstruction.pre_process.depth=4
121
- - reconstruction.post_process.network=UnetRes
122
- - reconstruction.post_process.nc=[32,64,116,128]
123
- - reconstruction.post_process.depth=4
124
  job:
125
  name: train_unrolled
126
  chdir: true
127
- override_dirname: files.downsample=2,files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png,reconstruction.post_process.depth=4,reconstruction.post_process.nc=[32,64,116,128],reconstruction.post_process.network=UnetRes,reconstruction.pre_process.depth=4,reconstruction.pre_process.nc=[32,64,116,128],reconstruction.pre_process.network=UnetRes,training.batch_size=4
128
  id: ???
129
  num: ???
130
- config_name: train_celeba_digicam
131
  env_set: {}
132
  env_copy: []
133
  config:
@@ -138,18 +134,18 @@ hydra:
138
  runtime:
139
  version: 1.3.2
140
  version_base: '1.3'
141
- cwd: /home/bezzam/LenslessPiCam
142
  config_sources:
143
  - path: hydra.conf
144
  schema: pkg
145
  provider: hydra
146
- - path: /home/bezzam/LenslessPiCam/configs
147
  schema: file
148
  provider: main
149
  - path: ''
150
  schema: structured
151
  provider: schema
152
- output_dir: /home/bezzam/LenslessPiCam/outputs/2023-11-20/13-26-04
153
  choices:
154
  hydra/env: default
155
  hydra/callbacks: null
 
113
  - hydra.mode=RUN
114
  task:
115
  - files.downsample=2
 
116
  - training.batch_size=4
117
+ - training.eval_batch_size=4
118
+ - torch_device=cuda:0
119
+ - device_ids=[0,1,2,3]
 
 
 
120
  job:
121
  name: train_unrolled
122
  chdir: true
123
+ override_dirname: device_ids=[0,1,2,3],files.downsample=2,torch_device=cuda:0,training.batch_size=4,training.eval_batch_size=4
124
  id: ???
125
  num: ???
126
+ config_name: train_digicam_celeba
127
  env_set: {}
128
  env_copy: []
129
  config:
 
134
  runtime:
135
  version: 1.3.2
136
  version_base: '1.3'
137
+ cwd: /root/LenslessPiCam
138
  config_sources:
139
  - path: hydra.conf
140
  schema: pkg
141
  provider: hydra
142
+ - path: /root/LenslessPiCam/configs
143
  schema: file
144
  provider: main
145
  - path: ''
146
  schema: structured
147
  provider: schema
148
+ output_dir: /root/LenslessPiCam/outputs/2024-03-24/15-35-50
149
  choices:
150
  hydra/env: default
151
  hydra/callbacks: null
.hydra/overrides.yaml CHANGED
@@ -1,9 +1,5 @@
1
  - files.downsample=2
2
- - files.psf=outputs/2023-10-25/09-40-03/adafruit_random_pattern_20231004_174047_SIM_psf.png
3
  - training.batch_size=4
4
- - reconstruction.pre_process.network=UnetRes
5
- - reconstruction.pre_process.nc=[32,64,116,128]
6
- - reconstruction.pre_process.depth=4
7
- - reconstruction.post_process.network=UnetRes
8
- - reconstruction.post_process.nc=[32,64,116,128]
9
- - reconstruction.post_process.depth=4
 
1
  - files.downsample=2
 
2
  - training.batch_size=4
3
+ - training.eval_batch_size=4
4
+ - torch_device=cuda:0
5
+ - device_ids=[0,1,2,3]
 
 
 
eval_recon/0/0.png CHANGED
eval_recon/0/2.png CHANGED
eval_recon/0/3.png CHANGED
eval_recon/0/4.png CHANGED
eval_recon/0/9.png ADDED
eval_recon/1/0.png CHANGED
eval_recon/1/2.png CHANGED
eval_recon/1/3.png CHANGED
eval_recon/1/4.png CHANGED
eval_recon/1/9.png ADDED
eval_recon/10/0.png CHANGED
eval_recon/10/2.png CHANGED
eval_recon/10/3.png CHANGED
eval_recon/10/4.png CHANGED
eval_recon/10/9.png ADDED
eval_recon/11/0.png CHANGED
eval_recon/11/2.png CHANGED
eval_recon/11/3.png CHANGED
eval_recon/11/4.png CHANGED
eval_recon/11/9.png ADDED
eval_recon/12/0.png CHANGED
eval_recon/12/2.png CHANGED
eval_recon/12/3.png CHANGED
eval_recon/12/4.png CHANGED
eval_recon/12/9.png ADDED
eval_recon/13/0.png CHANGED
eval_recon/13/2.png CHANGED
eval_recon/13/3.png CHANGED
eval_recon/13/4.png CHANGED
eval_recon/13/9.png ADDED
eval_recon/14/0.png CHANGED
eval_recon/14/2.png CHANGED
eval_recon/14/3.png CHANGED
eval_recon/14/4.png CHANGED
eval_recon/14/9.png ADDED
eval_recon/15/0.png CHANGED
eval_recon/15/2.png CHANGED
eval_recon/15/3.png CHANGED
eval_recon/15/4.png CHANGED
eval_recon/15/9.png ADDED
eval_recon/16/0.png CHANGED
eval_recon/16/2.png CHANGED
eval_recon/16/3.png CHANGED
eval_recon/16/4.png CHANGED
eval_recon/16/9.png ADDED
eval_recon/17/0.png CHANGED
eval_recon/17/2.png CHANGED