Upload 156 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +1 -0
- .hydra/config.yaml +183 -0
- .hydra/hydra.yaml +161 -0
- .hydra/overrides.yaml +7 -0
- eval_recon/0/0.png +0 -0
- eval_recon/0/2.png +0 -0
- eval_recon/0/3.png +0 -0
- eval_recon/0/4.png +0 -0
- eval_recon/0/9.png +0 -0
- eval_recon/1/0.png +0 -0
- eval_recon/1/2.png +0 -0
- eval_recon/1/3.png +0 -0
- eval_recon/1/4.png +0 -0
- eval_recon/1/9.png +0 -0
- eval_recon/10/0.png +0 -0
- eval_recon/10/2.png +0 -0
- eval_recon/10/3.png +0 -0
- eval_recon/10/4.png +0 -0
- eval_recon/10/9.png +0 -0
- eval_recon/11/0.png +0 -0
- eval_recon/11/2.png +0 -0
- eval_recon/11/3.png +0 -0
- eval_recon/11/4.png +0 -0
- eval_recon/11/9.png +0 -0
- eval_recon/12/0.png +0 -0
- eval_recon/12/2.png +0 -0
- eval_recon/12/3.png +0 -0
- eval_recon/12/4.png +0 -0
- eval_recon/12/9.png +0 -0
- eval_recon/13/0.png +0 -0
- eval_recon/13/2.png +0 -0
- eval_recon/13/3.png +0 -0
- eval_recon/13/4.png +0 -0
- eval_recon/13/9.png +0 -0
- eval_recon/14/0.png +0 -0
- eval_recon/14/2.png +0 -0
- eval_recon/14/3.png +0 -0
- eval_recon/14/4.png +0 -0
- eval_recon/14/9.png +0 -0
- eval_recon/15/0.png +0 -0
- eval_recon/15/2.png +0 -0
- eval_recon/15/3.png +0 -0
- eval_recon/15/4.png +0 -0
- eval_recon/15/9.png +0 -0
- eval_recon/16/0.png +0 -0
- eval_recon/16/2.png +0 -0
- eval_recon/16/3.png +0 -0
- eval_recon/16/4.png +0 -0
- eval_recon/16/9.png +0 -0
- eval_recon/17/0.png +0 -0
.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,183 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
wandb_project: digicam-celeba
|
2 |
+
seed: 0
|
3 |
+
start_delay: null
|
4 |
+
files:
|
5 |
+
cache_dir: /dev/shm
|
6 |
+
dataset: bezzam/DigiCam-CelebA-26K
|
7 |
+
huggingface_dataset: true
|
8 |
+
huggingface_psf: psf_simulated_waveprop.png
|
9 |
+
single_channel_psf: false
|
10 |
+
hf_simulated: false
|
11 |
+
split_seed: 0
|
12 |
+
n_files: null
|
13 |
+
test_size: 0.15
|
14 |
+
downsample: 2
|
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: false
|
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:
|
35 |
+
crop:
|
36 |
+
vertical:
|
37 |
+
- 0
|
38 |
+
- 525
|
39 |
+
horizontal:
|
40 |
+
- 265
|
41 |
+
- 695
|
42 |
+
simulation:
|
43 |
+
scene2mask: 0.25
|
44 |
+
mask2sensor: 0.002
|
45 |
+
object_height: 0.33
|
46 |
+
sensor: rpi_hq
|
47 |
+
snr_db: null
|
48 |
+
downsample: null
|
49 |
+
random_vflip: false
|
50 |
+
random_hflip: false
|
51 |
+
quantize: false
|
52 |
+
vertical_shift: -117
|
53 |
+
horizontal_shift: -25
|
54 |
+
torch: true
|
55 |
+
torch_device: cuda:0
|
56 |
+
device_ids:
|
57 |
+
- 0
|
58 |
+
- 1
|
59 |
+
- 2
|
60 |
+
- 3
|
61 |
+
measure: null
|
62 |
+
eval_disp_idx:
|
63 |
+
- 0
|
64 |
+
- 2
|
65 |
+
- 3
|
66 |
+
- 4
|
67 |
+
- 9
|
68 |
+
display:
|
69 |
+
plot: true
|
70 |
+
gamma: null
|
71 |
+
save: true
|
72 |
+
reconstruction:
|
73 |
+
init: null
|
74 |
+
method: unrolled_admm
|
75 |
+
skip_unrolled: false
|
76 |
+
init_processors: null
|
77 |
+
init_pre: true
|
78 |
+
init_post: true
|
79 |
+
psf_network:
|
80 |
+
- 4
|
81 |
+
- 8
|
82 |
+
- 16
|
83 |
+
- 32
|
84 |
+
psf_residual: false
|
85 |
+
direct_background_subtraction: false
|
86 |
+
learned_background_subtraction: false
|
87 |
+
integrated_background_subtraction: false
|
88 |
+
down_subtraction: false
|
89 |
+
integrated_background_unetres: false
|
90 |
+
unetres_input_background: false
|
91 |
+
unrolled_fista:
|
92 |
+
n_iter: 20
|
93 |
+
tk: 1
|
94 |
+
learn_tk: true
|
95 |
+
unrolled_admm:
|
96 |
+
n_iter: 5
|
97 |
+
mu1: 0.0001
|
98 |
+
mu2: 0.0001
|
99 |
+
mu3: 0.0001
|
100 |
+
tau: 0.0002
|
101 |
+
trainable_inv:
|
102 |
+
K: 0.0001
|
103 |
+
multi_wiener:
|
104 |
+
nc:
|
105 |
+
- 64
|
106 |
+
- 128
|
107 |
+
- 256
|
108 |
+
- 512
|
109 |
+
- 512
|
110 |
+
pre_process:
|
111 |
+
network: UnetRes
|
112 |
+
depth: 4
|
113 |
+
nc:
|
114 |
+
- 32
|
115 |
+
- 64
|
116 |
+
- 112
|
117 |
+
- 128
|
118 |
+
delay: null
|
119 |
+
freeze: null
|
120 |
+
unfreeze: null
|
121 |
+
post_process:
|
122 |
+
network: UnetRes
|
123 |
+
depth: 4
|
124 |
+
nc:
|
125 |
+
- 32
|
126 |
+
- 64
|
127 |
+
- 116
|
128 |
+
- 128
|
129 |
+
delay: null
|
130 |
+
freeze: null
|
131 |
+
unfreeze: null
|
132 |
+
train_last_layer: false
|
133 |
+
compensation: null
|
134 |
+
compensation_residual: true
|
135 |
+
trainable_mask:
|
136 |
+
mask_type: null
|
137 |
+
initial_value: psf
|
138 |
+
grayscale: false
|
139 |
+
mask_lr: 0.001
|
140 |
+
optimizer: Adam
|
141 |
+
L1_strength: 1.0
|
142 |
+
target: object_plane
|
143 |
+
simulation:
|
144 |
+
grayscale: false
|
145 |
+
output_dim: null
|
146 |
+
object_height: 0.04
|
147 |
+
flip: true
|
148 |
+
random_shift: false
|
149 |
+
random_vflip: 0.5
|
150 |
+
random_hflip: 0.5
|
151 |
+
random_rotate: false
|
152 |
+
scene2mask: 0.1
|
153 |
+
mask2sensor: 0.009
|
154 |
+
deadspace: true
|
155 |
+
use_waveprop: false
|
156 |
+
sensor: rpi_hq
|
157 |
+
snr_db: 10
|
158 |
+
downsample: 8
|
159 |
+
quantize: false
|
160 |
+
max_val: 255
|
161 |
+
training:
|
162 |
+
batch_size: 4
|
163 |
+
epoch: 25
|
164 |
+
eval_batch_size: 4
|
165 |
+
metric_for_best_model: null
|
166 |
+
save_every: null
|
167 |
+
skip_NAN: true
|
168 |
+
clip_grad: 1.0
|
169 |
+
crop_preloss: true
|
170 |
+
optimizer:
|
171 |
+
type: Adam
|
172 |
+
lr: 0.0001
|
173 |
+
lr_step_epoch: true
|
174 |
+
cosine_decay_warmup: false
|
175 |
+
final_lr: false
|
176 |
+
exp_decay: false
|
177 |
+
slow_start: false
|
178 |
+
step: false
|
179 |
+
gamma: 0.1
|
180 |
+
loss: l2
|
181 |
+
lpips: 1.0
|
182 |
+
unrolled_output_factor: false
|
183 |
+
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.psf_network=[4,8,16,32]
|
116 |
+
- reconstruction.psf_residual=False
|
117 |
+
- reconstruction.pre_process.nc=[32,64,112,128]
|
118 |
+
- optimizer.type=Adam
|
119 |
+
- optimizer.lr_step_epoch=True
|
120 |
+
- optimizer.cosine_decay_warmup=False
|
121 |
+
- wandb_project=digicam-celeba
|
122 |
+
job:
|
123 |
+
name: train_learning_based
|
124 |
+
chdir: true
|
125 |
+
override_dirname: optimizer.cosine_decay_warmup=False,optimizer.lr_step_epoch=True,optimizer.type=Adam,reconstruction.pre_process.nc=[32,64,112,128],reconstruction.psf_network=[4,8,16,32],reconstruction.psf_residual=False,wandb_project=digicam-celeba
|
126 |
+
id: ???
|
127 |
+
num: ???
|
128 |
+
config_name: train_digicam_celeba
|
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/LenslessPiCam
|
140 |
+
config_sources:
|
141 |
+
- path: hydra.conf
|
142 |
+
schema: pkg
|
143 |
+
provider: hydra
|
144 |
+
- path: /root/LenslessPiCam/configs
|
145 |
+
schema: file
|
146 |
+
provider: main
|
147 |
+
- path: ''
|
148 |
+
schema: structured
|
149 |
+
provider: schema
|
150 |
+
output_dir: /root/LenslessPiCam/outputs/2024-11-22/07-16-15
|
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.psf_network=[4,8,16,32]
|
2 |
+
- reconstruction.psf_residual=False
|
3 |
+
- reconstruction.pre_process.nc=[32,64,112,128]
|
4 |
+
- optimizer.type=Adam
|
5 |
+
- optimizer.lr_step_epoch=True
|
6 |
+
- optimizer.cosine_decay_warmup=False
|
7 |
+
- wandb_project=digicam-celeba
|
eval_recon/0/0.png
ADDED
eval_recon/0/2.png
ADDED
eval_recon/0/3.png
ADDED
eval_recon/0/4.png
ADDED
eval_recon/0/9.png
ADDED
eval_recon/1/0.png
ADDED
eval_recon/1/2.png
ADDED
eval_recon/1/3.png
ADDED
eval_recon/1/4.png
ADDED
eval_recon/1/9.png
ADDED
eval_recon/10/0.png
ADDED
eval_recon/10/2.png
ADDED
eval_recon/10/3.png
ADDED
eval_recon/10/4.png
ADDED
eval_recon/10/9.png
ADDED
eval_recon/11/0.png
ADDED
eval_recon/11/2.png
ADDED
eval_recon/11/3.png
ADDED
eval_recon/11/4.png
ADDED
eval_recon/11/9.png
ADDED
eval_recon/12/0.png
ADDED
eval_recon/12/2.png
ADDED
eval_recon/12/3.png
ADDED
eval_recon/12/4.png
ADDED
eval_recon/12/9.png
ADDED
eval_recon/13/0.png
ADDED
eval_recon/13/2.png
ADDED
eval_recon/13/3.png
ADDED
eval_recon/13/4.png
ADDED
eval_recon/13/9.png
ADDED
eval_recon/14/0.png
ADDED
eval_recon/14/2.png
ADDED
eval_recon/14/3.png
ADDED
eval_recon/14/4.png
ADDED
eval_recon/14/9.png
ADDED
eval_recon/15/0.png
ADDED
eval_recon/15/2.png
ADDED
eval_recon/15/3.png
ADDED
eval_recon/15/4.png
ADDED
eval_recon/15/9.png
ADDED
eval_recon/16/0.png
ADDED
eval_recon/16/2.png
ADDED
eval_recon/16/3.png
ADDED
eval_recon/16/4.png
ADDED
eval_recon/16/9.png
ADDED
eval_recon/17/0.png
ADDED