-
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.
PSF compensation network and adding noise to input/PSF for robustness…
… tests. (#158) * Fixes for when no background is present. * Update setup. * Add support for authentication for learned models. * Fix PSF used for reconstruction debug examples. * Add script for psf err vs metric. * Add option for setting SNR with digital noise. * Add support for parameterize and perturb. * Update experiments. * Update macos in GitHub actions. * Update gitignore. * Update. * Update CHANGELOG.
- Loading branch information
Showing
32 changed files
with
1,082 additions
and
620 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ notebooks/models/* | |
*.png | ||
*.jpg | ||
*.npy | ||
*.sh | ||
|
||
configs/telegram_demo_secret.yaml | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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,44 @@ | ||
# python scripts/eval/benchmark_recon.py -cn benchmark_digicam_mirflickr_pnp | ||
defaults: | ||
- benchmark | ||
- _self_ | ||
|
||
|
||
dataset: HFDataset | ||
batchsize: 1 | ||
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: [ | ||
"hf:digicam:mirflickr_single_25k:Unet4M+U5+Unet4M_wave_psfNN", | ||
"hf:digicam:mirflickr_multi_25k:Unet4M+U5+Unet4M_wave_psfNN", | ||
] | ||
|
||
pnp: | ||
mu: 1e-3 # weight for distance from original model parameters | ||
model_path: null # leave null to be overwritten in script | ||
# lr: 1e-2 | ||
# n_iter: 10 | ||
lr: 3e-3 # learning rate for SGD | ||
n_iter: 10 # number of iterations | ||
|
||
|
||
save_idx: [1, 2, 4, 5, 9, 24, 33, 61] | ||
|
||
# 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
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
Oops, something went wrong.