Move TARGETS_DIR to /mnt/data/projects/cupido/targets

Targets relocated alongside the tracking DBs (out of ownCloud sync) so
the docker mount already covers them and ownCloud no longer churns on
JSON sidecars. Updated config, fixed a stale docstring in pick_targets,
and dropped the now-moot data/targets/*.json gitignore rule.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-04-30 17:13:55 +01:00
parent f60a9d0530
commit 7d09523840
3 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -3,8 +3,7 @@ data/raw/*.db
data/processed/*.csv data/processed/*.csv
# Offline-tracking outputs (regenerable from videos + target JSONs) # Offline-tracking outputs (regenerable from videos + target JSONs)
# DBs live outside the repo at /mnt/data/projects/cupido/tracked/ # DBs and target JSONs live outside the repo at /mnt/data/projects/cupido/
data/targets/*.json
data/metadata/video_inventory.csv data/metadata/video_inventory.csv
data/logs/*.log data/logs/*.log

View file

@ -12,7 +12,9 @@ FIGURES = PROJECT_ROOT / "figures"
VIDEOS_ROOT = Path("/mnt/ethoscope_data/videos") VIDEOS_ROOT = Path("/mnt/ethoscope_data/videos")
VIDEO_INFO_XLSX = PROJECT_ROOT.parent / "all_video_info_merged.xlsx" VIDEO_INFO_XLSX = PROJECT_ROOT.parent / "all_video_info_merged.xlsx"
INVENTORY_CSV = DATA_METADATA / "video_inventory.csv" INVENTORY_CSV = DATA_METADATA / "video_inventory.csv"
TARGETS_DIR = PROJECT_ROOT / "data" / "targets" # Reason: kept on the local data volume alongside the tracking DBs (out of
# ownCloud sync). See TRACKING_OUTPUT_DIR comment below.
TARGETS_DIR = Path("/mnt/data/projects/cupido/targets")
# Reason: tracking DBs are large binary files that don't belong in # Reason: tracking DBs are large binary files that don't belong in
# ownCloud-synced storage (sync conflicts + bandwidth). They live on the # ownCloud-synced storage (sync conflicts + bandwidth). They live on the
# local data volume instead. Regenerable from videos + target JSONs. # local data volume instead. Regenerable from videos + target JSONs.

View file

@ -12,7 +12,7 @@ These three points are the same reference layout used by ethoscope's
coordinates. Saving them as a JSON sidecar lets the offline tracker build the coordinates. Saving them as a JSON sidecar lets the offline tracker build the
6-ROI HD mating arena grid without needing auto-target detection. 6-ROI HD mating arena grid without needing auto-target detection.
Output JSON sidecar: data/targets/<video_basename>.json Output JSON sidecar: TARGETS_DIR/<video_basename>.json
{ {
"video_path": "/mnt/.../*.mp4", "video_path": "/mnt/.../*.mp4",
"frame_index": <int>, "frame_index": <int>,