Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Measuring background during dataset collection #145

Merged
merged 2 commits into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python_pycsou.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fail-fast: false
max-parallel: 12
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-latest, macos-12, windows-latest]
python-version: [3.9, "3.10"]
steps:
- uses: actions/checkout@v3
Expand Down
5 changes: 4 additions & 1 deletion configs/collect_dataset.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# python scripts/collect_dataset_on_device.py -cn collect_dataset

input_dir: /mnt/mirflickr/10
input_dir: /mnt/mirflickr/all
input_file_ext: jpg

# can pass existing folder to continue measurement
Expand Down Expand Up @@ -41,6 +41,9 @@ display:
landscape: False # whether to force landscape

capture:
measure_bg: False # measure bg every x images, set False if not measuring background
bg_fp: "black_background"
framerate: 10
skip: False # to test looping over displaying images
config_pause: 3
iso: 100
Expand Down
26 changes: 26 additions & 0 deletions configs/collect_dataset_background.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# python scripts/measure/collect_dataset_on_device.py -cn collect_dataset_background
defaults:
- collect_dataset
- _self_


output_dir: /mnt/mirflickr/all_measured_20240813-183259

# files to measure
n_files: 25000

min_level: 160
max_tries: 3


# -- display parameters
display:
screen_res: [1920, 1200] # width, height
image_res: [600, 600] # useful if input images don't have the same dimension, set it to this
vshift: -34

capture:
measure_bg: 1 # measure bg every x images, set False if not measuring background
awb_gains: [1.8, 1.1] # red, blue
fact_increase: 1.35 # multiplicative factor to increase exposure
fact_decrease: 1.3
Loading
Loading