Replace hardcoded config and directory scan with YAML config and explicit clip list
- config.py constants -> config/config.yaml (user-editable, git-ignored) - Questions and defaults now defined in the YAML, including per-question defaults - ClipSelector no longer scans the data dir; reads a user-provided clips.txt instead - Removed --daily / --time / --skip-existing-day args - video_loader now samples frames evenly across the full clip - pyyaml added as a dependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
10
config/clips.example.txt
Normal file
10
config/clips.example.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# List the clip filenames (without path) to annotate, one per line.
|
||||
# Lines starting with # are ignored. Order is preserved.
|
||||
GRAMMONT_2025-11-17T11_31_38.546953+00_00.zip
|
||||
GRAMMONT_2025-11-17T12_31_39.650554+00_00.zip
|
||||
GRAMMONT_2025-11-17T15_32_07.184007+00_00.zip
|
||||
GRAMMONT_2025-11-17T15_32_07.184007+00_00.zip
|
||||
GRAMMONT_2025-11-17T15_47_10.070449+00_00.zip
|
||||
GRAMMONT_2025-11-22T10_47_02.705611+00_00.zip
|
||||
GRAMMONT_2025-11-22T14_47_00.096714+00_00.zip
|
||||
GRAMMONT_2025-11-22T15_32_01.015469+00_00.zip
|
||||
43
config/config.example.yaml
Normal file
43
config/config.example.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
display_max: 720
|
||||
fps_fallback: 25
|
||||
max_frames: 100
|
||||
|
||||
data_dir: data/filtered_data
|
||||
out_dir: data/annotation_results
|
||||
clips_file: config/clips.txt
|
||||
|
||||
questions:
|
||||
- section: River
|
||||
items:
|
||||
- key: flow
|
||||
label: Flow Regime
|
||||
options: [Turbulent, Laminar, Uncertain]
|
||||
default: Laminar
|
||||
- key: shadows
|
||||
label: Strong Shadows
|
||||
options: [Yes, No, Uncertain]
|
||||
default: No
|
||||
- key: artifacts
|
||||
label: Artifacts on River
|
||||
options: [Yes, No, Uncertain]
|
||||
default: No
|
||||
- section: Scene
|
||||
items:
|
||||
- key: lighting
|
||||
label: Lighting
|
||||
options: [Day, Night, Uncertain]
|
||||
default: Day
|
||||
- key: exposure
|
||||
label: Exposure
|
||||
options: [Overexposed, Underexposed, Both, Normal, Uncertain]
|
||||
default: Normal
|
||||
- section: Weather
|
||||
items:
|
||||
- key: snowing
|
||||
label: Snowing
|
||||
options: [Yes, No, Uncertain]
|
||||
default: No
|
||||
- key: snow_on_ground
|
||||
label: Snow on Ground
|
||||
options: [Yes, No, Uncertain]
|
||||
default: No
|
||||
Reference in New Issue
Block a user