Repository navigation
Add person ReID embedding utilities and source-exact retrieval protocols #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
281b868
Add opt-in model YAML family inheritance with identity proofs
parkjinman98 c1289eb
Add person retrieval datasets, embedding postprocessing and exact pro…
parkjinman98 81a3727
Connect retrieval embeddings to engine results and dataset readiness
parkjinman98 6271d5a
Merge squash-integrated main without changing ReID diff
parkjinman98 3414b78
Integrate squash-merged Hub verifier main
parkjinman98 1e70398
Validate retrieval cutoffs and prepared ReID cache boundaries
parkjinman98 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
| "obb", | ||
| "pose_estimation", | ||
| "face_detection", | ||
| "person_reid", | ||
| ) | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: dukemtmc-reid | ||
| path: ~/.mblt_model_zoo/datasets/dukemtmc-reid | ||
| tasks: | ||
| - person_reid | ||
| val: eval | ||
| cameras: 8 | ||
| skip_junk: false | ||
| retrieval_splits: | ||
| query: | ||
| directory: query | ||
| count: 2228 | ||
| gallery: | ||
| directory: bounding_box_test | ||
| count: 17661 | ||
| source: | ||
| repository: https://git.mobilint.com/algorithm-team/testing/mblt-model-ops | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 | ||
| config_path: datasets/dukemtmc_reid/dukemtmc_reid.yaml | ||
| name: dukemtmc-reid | ||
| dataloader_path: datasets/dukemtmc_reid/_private/dataloader.py | ||
| shared_path: datasets/_shared/reid.py | ||
| eval_protocol: | ||
| id: dukemtmc-reid-reid-map.v1 | ||
| evaluation: | ||
| split: eval/query + eval/bounding_box_test | ||
| protocol: dukemtmc-reid-reid-map.v1 | ||
| primary_metric: map | ||
| secondary_metrics: | ||
| - rank1 | ||
| - rank5 | ||
| - rank10 | ||
| implementation_reference: | ||
| path: datasets/dukemtmc_reid/_private/evaluator.py | ||
| shared_path: datasets/_shared/reid.py | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: market1501 | ||
| path: ~/.mblt_model_zoo/datasets/market1501 | ||
| tasks: | ||
| - person_reid | ||
| val: eval | ||
| cameras: 6 | ||
| skip_junk: true | ||
| retrieval_splits: | ||
| query: | ||
| directory: query | ||
| count: 3368 | ||
| gallery: | ||
| directory: bounding_box_test | ||
| count: 15913 | ||
| source: | ||
| repository: https://git.mobilint.com/algorithm-team/testing/mblt-model-ops | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 | ||
| config_path: datasets/market1501/market1501.yaml | ||
| name: market1501 | ||
| dataloader_path: datasets/market1501/_private/dataloader.py | ||
| shared_path: datasets/_shared/reid.py | ||
| eval_protocol: | ||
| id: market1501-reid-map.v1 | ||
| evaluation: | ||
| split: eval/query + eval/bounding_box_test | ||
| protocol: market1501-reid-map.v1 | ||
| primary_metric: map | ||
| secondary_metrics: | ||
| - rank1 | ||
| - rank5 | ||
| - rank10 | ||
| implementation_reference: | ||
| path: datasets/market1501/_private/evaluator.py | ||
| shared_path: datasets/_shared/reid.py | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: occluded-duke | ||
| path: ~/.mblt_model_zoo/datasets/occluded-duke | ||
| tasks: | ||
| - person_reid | ||
| val: eval | ||
| cameras: 8 | ||
| skip_junk: false | ||
| retrieval_splits: | ||
| query: | ||
| directory: query | ||
| count: 2210 | ||
| gallery: | ||
| directory: bounding_box_test | ||
| count: 17661 | ||
| source: | ||
| repository: https://git.mobilint.com/algorithm-team/testing/mblt-model-ops | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 | ||
| config_path: datasets/occluded_duke/occluded_duke.yaml | ||
| name: occluded-duke | ||
| dataloader_path: datasets/occluded_duke/_private/dataloader.py | ||
| shared_path: datasets/_shared/reid.py | ||
| eval_protocol: | ||
| id: occluded-duke-reid-map.v1 | ||
| evaluation: | ||
| split: eval/query + eval/bounding_box_test | ||
| protocol: occluded-duke-reid-map.v1 | ||
| primary_metric: map | ||
| secondary_metrics: | ||
| - rank1 | ||
| - rank5 | ||
| - rank10 | ||
| implementation_reference: | ||
| path: datasets/occluded_duke/_private/evaluator.py | ||
| shared_path: datasets/_shared/reid.py | ||
| revision: ec537764e36ca10da963fcb7afab157ea60ca022 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| # Processing only: published HF artifact identities belong to concrete stage-d2 YAMLs. | ||
| # Source: mblt-model-ops ec537764e36ca10da963fcb7afab157ea60ca022 | ||
| # models/person_reid/CLIP_ReID_RN50_Baseline_DukeMTMC/distribution.yaml | ||
| DEFAULT: | ||
| pre_cfg: | ||
| Reader: | ||
| style: pil | ||
| Resize: | ||
| size: [256, 128] | ||
| interpolation: bilinear | ||
| Normalize: | ||
| mean: [0.485, 0.456, 0.406] | ||
| std: [0.229, 0.224, 0.225] | ||
| post_cfg: | ||
| task: person_reid | ||
| dataset: dukemtmc-reid | ||
| normalize: true | ||
| # Inherit this processing profile and override dataset/dimension/artifacts per model. | ||
| MARKET1501: | ||
| extends: person_reid.yaml#DEFAULT | ||
| post_cfg: | ||
| dataset: market1501 | ||
| OCCLUDED_DUKE: | ||
| extends: person_reid.yaml#DEFAULT | ||
| post_cfg: | ||
| dataset: occluded-duke |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| """Person retrieval utilities; published model wrappers are added separately.""" | ||
|
|
||
| from ..utils.datasets.reid import ( | ||
| DukeMTMCReIDDataset, | ||
| Market1501Dataset, | ||
| OccludedDukeDataset, | ||
| ReIDDataset, | ||
| ReIDSample, | ||
| ) | ||
| from ..utils.evaluation.retrieval import ( | ||
| DukeMTMCReIDEvaluator, | ||
| Market1501Evaluator, | ||
| OccludedDukeEvaluator, | ||
| RetrievalEvaluator, | ||
| RetrievalResult, | ||
| extract_embeddings, | ||
| ) | ||
| from ..utils.postprocess.embedding_post import EmbeddingPost, PersonReIDPost | ||
|
|
||
| __all__ = [ | ||
| "DukeMTMCReIDDataset", | ||
| "DukeMTMCReIDEvaluator", | ||
| "EmbeddingPost", | ||
| "Market1501Dataset", | ||
| "Market1501Evaluator", | ||
| "OccludedDukeDataset", | ||
| "OccludedDukeEvaluator", | ||
| "PersonReIDPost", | ||
| "ReIDDataset", | ||
| "ReIDSample", | ||
| "RetrievalEvaluator", | ||
| "RetrievalResult", | ||
| "extract_embeddings", | ||
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.