Upload measurement_config.yaml with huggingface_hub
Browse files- measurement_config.yaml +56 -0
measurement_config.yaml
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# python scripts/measure/collect_dataset_on_device.py -cn collect_dataset_background
|
2 |
+
|
3 |
+
input_dir: /mnt/mirflickr/all
|
4 |
+
input_file_ext: jpg
|
5 |
+
|
6 |
+
# can pass existing folder to continue measurement
|
7 |
+
output_dir: /mnt/mirflickr/all_measured_20240813-183259
|
8 |
+
output_file_ext: png
|
9 |
+
|
10 |
+
# files to measure
|
11 |
+
n_files: 25000
|
12 |
+
start_idx: 0
|
13 |
+
|
14 |
+
# timing
|
15 |
+
runtime: null # in hours
|
16 |
+
start_delay: null # how much time (in minutes) to wait before starting
|
17 |
+
|
18 |
+
# measurement parameters
|
19 |
+
dummy: False # simply copy file to output folder for testing
|
20 |
+
|
21 |
+
# ideal image levels
|
22 |
+
max_level: 254
|
23 |
+
min_level: 160
|
24 |
+
max_tries: 3
|
25 |
+
|
26 |
+
masks: null # for multi-mask measurements
|
27 |
+
recon: null #ADMM # parameters for reconstruction (for debugging purposes, not recommended to do during actual measurement as it will significantly increase the time)
|
28 |
+
|
29 |
+
# -- display parameters
|
30 |
+
display:
|
31 |
+
output_fp: "~/LenslessPiCam_display/test.png"
|
32 |
+
# default to this screen: https://www.dell.com/en-us/work/shop/dell-ultrasharp-usb-c-hub-monitor-u2421e/apd/210-axmg/monitors-monitor-accessories#techspecs_section
|
33 |
+
screen_res: [1920, 1200] # width, height
|
34 |
+
image_res: [600, 600] # useful if input images don't have the same dimension, set it to this
|
35 |
+
pad: 0
|
36 |
+
hshift: 0
|
37 |
+
vshift: -34
|
38 |
+
brightness: 80 # max brightness
|
39 |
+
rot90: 3
|
40 |
+
delay: 2 # to allow picture to display
|
41 |
+
landscape: False # whether to force landscape
|
42 |
+
|
43 |
+
capture:
|
44 |
+
measure_bg: 1 # measure bg every x images
|
45 |
+
bg_fp: "black_background"
|
46 |
+
skip: False # to test looping over displaying images
|
47 |
+
framerate: 10
|
48 |
+
config_pause: 3
|
49 |
+
iso: 100
|
50 |
+
res: null
|
51 |
+
down: 8
|
52 |
+
exposure: 0.02 # min exposure
|
53 |
+
awb_gains: [1.8, 1.1] # red, blue
|
54 |
+
# awb_gains: null
|
55 |
+
fact_increase: 1.35 # multiplicative factor to increase exposure
|
56 |
+
fact_decrease: 1.3
|