Closed sfmig closed 2 weeks ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.70%. Comparing base (
e4eea35
) to head (2f4cf20
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
Description
What is this PR
Why is this PR needed? We want to be able to load bounding boxes tracks (see #167).
What does this PR do?? This PR defines a
ValidBboxesDataset
class, that followsValidPosesDataset
.A bounding boxes dataset is made up of 4 data arrays:
position
: (required) holds thex, y
coordinates of the bounding box centroid.(n_frames, n_individuals, n_spatial_coords)
, but we only enforce the last dimension (spatial) to have 2 coordinates.shape
: (required) holds thewidth
andheight
of the bounding box.confidence
: (optional) holds the confidence score for the bounding box. If None is passed, it is filled in with nans.n
dimensions have the same number of coordinates as the firstn
dimensions of theposition
array.individual_names
: (optional) a list of bounding boxes IDs. If None is passed, we assign 1-based IDs that are unique per frame. The 1-based convention for the IDs follows MOT challenge.We are assuming 2D bounding boxes only for now (through the validation of the
position
and theshape
arrays).Questions
pose
dataset, we enforce theposition
array to have a fixed number of dimensions, which I am not doing in thebboxes
dataset. This is inconsistent atm, but my understanding from chats with @niksirbi, from this PR #206 and from this related issue is that we would like to remove that restriction. Do correct me if I am wrong!References
Issue #167.
This work is derived from splitting #186 into smaller PRs.
How has this PR been tested?
Tests pass locally and on CI.
Is this a breaking change?
No.
Does this PR require an update to the documentation?
It will require an update once the bounding boxes functionality is complete.
Checklist: