build: add reproducible mmdet patch script
Add an idempotent patch-mmdet-version-gate entrypoint that rewrites the installed mmdet mmcv compatibility assert into a warning so the local rebuilt mmcv wheel can be reused after uv sync. Cover the source rewrite with focused tests and document the post-sync command in the README so the local environment patch is reproducible instead of being a one-off manual edit inside .venv.
This commit is contained in:
@@ -44,6 +44,7 @@ References:
|
||||
|
||||
```bash
|
||||
uv sync --group dev --group detection
|
||||
uv run patch-mmdet-version-gate
|
||||
uv run pose-tracking-exp run_detection --config detection.toml camera0 camera1
|
||||
uv run pose-tracking-exp run_detection --source video --output-dir data/detections --config detection.toml cam0=/data/cam0.mp4 cam1=/data/cam1.mp4
|
||||
```
|
||||
@@ -58,6 +59,7 @@ The default backend is `yolo_rtmpose`, and the heavy runtime dependencies live i
|
||||
Checkpoint paths are explicit config fields; the code does not hardcode local checkpoint locations.
|
||||
The only inferred path is the MMPose config path, which is resolved relative to the installed `mmpose` package when `pose_config_path` is omitted.
|
||||
For offline video runs, the default sink is parquet and writes one `*_detected.parquet` file per source. `run_tracking` can consume that directory directly as replay input.
|
||||
`uv run patch-mmdet-version-gate` is an idempotent local-environment patch for the current `mmdet` compatibility assert against the rebuilt `mmcv` wheel. Re-run it after `uv sync` if the environment is recreated.
|
||||
|
||||
Example `detection.toml`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user