-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into upload_background_dataset
- Loading branch information
Showing
58 changed files
with
3,302 additions
and
656 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# python scripts/eval/benchmark_recon.py -cn benchmark_diffusercam_mirflickr | ||
defaults: | ||
- benchmark | ||
- _self_ | ||
|
||
dataset: HFDataset | ||
batchsize: 4 | ||
device: "cuda:0" | ||
|
||
huggingface: | ||
repo: "bezzam/DiffuserCam-Lensless-Mirflickr-Dataset-NORM" | ||
psf: psf.tiff | ||
image_res: null | ||
rotate: False # if measurement is upside-down | ||
alignment: null | ||
downsample: 2 | ||
downsample_lensed: 2 | ||
flipud: True | ||
flip_lensed: True | ||
single_channel_psf: True | ||
|
||
algorithms: [ | ||
"ADMM", | ||
|
||
## -- reconstructions trained on DiffuserCam measured | ||
"hf:diffusercam:mirflickr:U5+Unet8M", | ||
"hf:diffusercam:mirflickr:TrainInv+Unet8M", | ||
"hf:diffusercam:mirflickr:MMCN4M+Unet4M", | ||
"hf:diffusercam:mirflickr:MWDN8M", | ||
"hf:diffusercam:mirflickr:Unet4M+U5+Unet4M", | ||
"hf:diffusercam:mirflickr:Unet4M+TrainInv+Unet4M", | ||
"hf:diffusercam:mirflickr:Unet2M+MMCN+Unet2M", | ||
"hf:diffusercam:mirflickr:Unet2M+MWDN6M", | ||
"hf:diffusercam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M_ft_tapecam", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M_ft_tapecam_post", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M_ft_tapecam_pre", | ||
|
||
# ## -- reconstruction trained on DiffuserCam simulated | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_tapecam", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_tapecam_post", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_tapecam_pre", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_digicam_multi_post", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_digicam_multi_pre", | ||
# "hf:diffusercam:mirflickr_sim:Unet4M+U5+Unet4M_ft_digicam_multi", | ||
|
||
# ## -- reconstructions trained on other datasets/systems | ||
# "hf:tapecam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave", | ||
# "hf:digicam:celeba_26k:Unet4M+U5+Unet4M_wave", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U10+Unet4M_wave", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M_flips", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M_flips_rotate10", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M_aux1", | ||
# "hf:digicam:mirflickr_multi_25k:Unet4M+U10+Unet4M_wave", | ||
# "hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave", | ||
] | ||
|
||
save_idx: [0, 1, 3, 4, 8, 45, 58, 63] | ||
n_iter_range: [100] # for ADMM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# python scripts/eval/benchmark_recon.py -cn benchmark_digicam_celeba | ||
defaults: | ||
- benchmark | ||
- _self_ | ||
|
||
|
||
dataset: HFDataset | ||
batchsize: 10 | ||
device: "cuda:0" | ||
|
||
algorithms: [ | ||
"ADMM", | ||
|
||
## -- reconstructions trained on measured data | ||
"hf:digicam:celeba_26k:U5+Unet8M_wave", | ||
"hf:digicam:celeba_26k:TrainInv+Unet8M_wave", | ||
"hf:digicam:celeba_26k:MWDN8M_wave", | ||
"hf:digicam:celeba_26k:MMCN4M+Unet4M_wave", | ||
"hf:digicam:celeba_26k:Unet2M+MWDN6M_wave", | ||
"hf:digicam:celeba_26k:Unet4M+TrainInv+Unet4M_wave", | ||
"hf:digicam:celeba_26k:Unet2M+MMCN+Unet2M_wave", | ||
"hf:digicam:celeba_26k:Unet4M+U5+Unet4M_wave", | ||
"hf:digicam:celeba_26k:Unet4M+U10+Unet4M_wave", | ||
|
||
# # -- reconstructions trained on other datasets/systems | ||
# "hf:diffusercam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:tapecam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U10+Unet4M_wave", | ||
] | ||
|
||
save_idx: [0, 2, 3, 4, 9] | ||
n_iter_range: [100] # for ADMM | ||
|
||
huggingface: | ||
repo: bezzam/DigiCam-CelebA-26K | ||
psf: psf_simulated_waveprop.png # psf_simulated_waveprop.png, psf_simulated.png, psf_measured.png | ||
split_seed: 0 | ||
test_size: 0.15 | ||
downsample: 2 | ||
image_res: null | ||
|
||
alignment: | ||
top_left: null | ||
height: null | ||
|
||
# cropping when there is no downsampling | ||
crop: | ||
vertical: [0, 525] | ||
horizontal: [265, 695] | ||
|
||
# for prepping ground truth data | ||
simulation: | ||
scene2mask: 0.25 # [m] | ||
mask2sensor: 0.002 # [m] | ||
object_height: 0.33 # [m] | ||
sensor: "rpi_hq" | ||
# shifting when there is no files to downsample | ||
vertical_shift: -117 | ||
horizontal_shift: -25 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# python scripts/eval/benchmark_recon.py -cn benchmark_digicam_mirflickr_multi | ||
defaults: | ||
- benchmark | ||
- _self_ | ||
|
||
|
||
dataset: HFDataset | ||
batchsize: 4 | ||
device: "cuda:0" | ||
|
||
huggingface: | ||
repo: "bezzam/DigiCam-Mirflickr-MultiMask-25K" | ||
psf: null # null for simulating PSF | ||
image_res: [900, 1200] # used during measurement | ||
rotate: True # if measurement is upside-down | ||
flipud: False | ||
flip_lensed: False # if rotate or flipud is True, apply to lensed | ||
alignment: | ||
top_left: [80, 100] # height, width | ||
height: 200 | ||
downsample: 1 | ||
|
||
algorithms: [ | ||
"ADMM", | ||
|
||
## -- reconstructions trained on measured data | ||
"hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave", | ||
"hf:digicam:mirflickr_multi_25k:Unet4M+U10+Unet4M_wave", | ||
"hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave_aux1", | ||
"hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave_flips", | ||
|
||
# ## -- reconstructions trained on other datasets/systems | ||
# "hf:diffusercam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:tapecam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U10+Unet4M_wave", | ||
# "hf:digicam:celeba_26k:Unet4M+U5+Unet4M_wave", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_aux1", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_flips", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_flips_rotate10", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_ft_flips", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_ft_flips_rotate10", | ||
] | ||
|
||
# # -- to only use output from unrolled | ||
# hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_aux1: | ||
# skip_post: True | ||
# skip_pre: True | ||
|
||
save_idx: [1, 2, 4, 5, 9, 24, 33, 61] | ||
n_iter_range: [100] # for ADMM | ||
|
||
# simulating PSF | ||
simulation: | ||
use_waveprop: True | ||
deadspace: True | ||
scene2mask: 0.3 | ||
mask2sensor: 0.002 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# python scripts/eval/benchmark_recon.py -cn benchmark_digicam_mirflickr_single | ||
defaults: | ||
- benchmark | ||
- _self_ | ||
|
||
dataset: HFDataset | ||
batchsize: 4 | ||
device: "cuda:0" | ||
|
||
huggingface: | ||
repo: "bezzam/DigiCam-Mirflickr-SingleMask-25K" | ||
cache_dir: /dev/shm | ||
psf: null # null for simulating PSF | ||
image_res: [900, 1200] # used during measurement | ||
rotate: True # if measurement is upside-down | ||
flipud: False | ||
flip_lensed: False # if rotate or flipud is True, apply to lensed | ||
alignment: | ||
top_left: [80, 100] # height, width | ||
height: 200 | ||
downsample: 1 | ||
|
||
|
||
algorithms: [ | ||
"ADMM", | ||
|
||
# -- reconstructions trained on measured data | ||
"hf:digicam:mirflickr_single_25k:U5+Unet8M_wave", | ||
"hf:digicam:mirflickr_single_25k:TrainInv+Unet8M_wave", | ||
"hf:digicam:mirflickr_single_25k:MMCN4M+Unet4M_wave", | ||
"hf:digicam:mirflickr_single_25k:MWDN8M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet4M+TrainInv+Unet4M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet2M+MMCN+Unet2M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet2M+MWDN6M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet4M+U10+Unet4M_wave", | ||
"hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_flips", | ||
"hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_flips_rotate10", | ||
|
||
# ## -- reconstructions trained on other datasets/systems | ||
# "hf:diffusercam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:tapecam:mirflickr:Unet4M+U10+Unet4M", | ||
# "hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave", | ||
# "hf:digicam:celeba_26k:Unet4M+U5+Unet4M_wave", | ||
# "hf:tapecam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:diffusercam:mirflickr:Unet4M+U5+Unet4M", | ||
# "hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave", | ||
] | ||
|
||
save_idx: [1, 2, 4, 5, 9] | ||
n_iter_range: [100] # for ADMM | ||
|
||
# simulating PSF | ||
simulation: | ||
use_waveprop: True | ||
deadspace: True | ||
scene2mask: 0.3 | ||
mask2sensor: 0.002 |
Oops, something went wrong.