# "video_1",   # video stream from top front camera
# "video_2",   # video stream from chest left camera
# "video_3",   # video stream from chest right camera
# "video_4",   # video stream from gripper right (bottom) camera
# "video_5",   # video stream from gripper right (top) camera
# "video_6",   # video stream from gripper left (bottom) camera
# "video_7",   # video stream from gripper left (top) camera

uv run --env-file .env -- python -m seamstress.learning.data.other.watney.processor \
  --data-root /home/ubuntu/raw_episodes_10112025 \
  --annotations /home/ubuntu/raw_episodes_10112025/episodes.csv \
  --min-duration-s 20 --max-duration-s 120 \
  --split both \
  --drop-if-name-contains "right,timestamp,ts_ns,log_ts,send_ts,cart,halt,lift,status,pipeline,present" \
  --target-episodes 128 --max-episodes-to-scan 2000 \
  --bad-col-threshold-pct 2 --nonfinite-fill-value 0.0 \
  --min-rows-per-episode 20 \
  --image-view video_7 --image-downscale 8 --image-quality 90 --export-images \
  --video-downscale 8 --export-episode-videos \
  --out-root /home/ubuntu/watney_processed/ \
  --out-good-name watney_good \
  --out-bad-name watney_bad \
  --overwrite \
  --out-suffix watney_shared \
  --export-images \
  --export-episode-videos

# Or in the background

nohup bash -lc '
uv run --env-file .env -- python -m seamstress.learning.data.other.watney.processor \
  --data-root /home/ubuntu/raw_episodes_10112025 \
  --annotations /home/ubuntu/raw_episodes_10112025/episodes.csv \
  --min-duration-s 20 --max-duration-s 120 \
  --split both \
  --drop-if-name-contains "right,timestamp,ts_ns,log_ts,send_ts,cart,halt,lift,status,pipeline,present" \
  --target-episodes 128 --max-episodes-to-scan 2000 \
  --bad-col-threshold-pct 2 --nonfinite-fill-value 0.0 \
  --min-rows-per-episode 20 \
  --image-view video_7 --image-downscale 8 --image-quality 90 --export-images \
  --video-downscale 8 --export-episode-videos \
  --out-root /home/ubuntu/watney_processed/ \
  --out-good-name watney_good \
  --out-bad-name watney_bad \
  --overwrite \
  --out-suffix watney_shared \
  --export-images \
  --export-episode-videos
' > /home/ubuntu/watney_processor.log 2>&1 < /dev/null & disown

tail -f /home/ubuntu/watney_processor.log


