-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add integration tests for keypoint detection task (#3945) * Fix export * Add integrastion tests for keypoint detection * Update export * Add kp det to gh workflow * Fix ruff * Move std mean to class vars Cleanup Implement dummy input for kp Update export inf test Upgrade MAPI Cleanup Fix CLI tests Cleanup Fix kp OV model data config Fix dummy input docstring Co-authored-by: Prokofiev Kirill <kirill.prokofiev@intel.com> Add unit tests for kp det model Fix ruff Update pck docs Fix typos in tests Add uts for PCK metric Rename kaypoints det metric Del extra transform in p ove model Fix unit test naming Fix cpu train/eval Fix autocast deprecation warnings
- Loading branch information
Showing
13 changed files
with
420 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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,50 @@ | ||
model: | ||
class_path: otx.core.model.keypoint_detection.OVKeypointDetectionModel | ||
init_args: | ||
label_info: 19 | ||
model_name: rtm_pose_tiny | ||
model_type: "keypoint_detection" | ||
async_inference: true | ||
use_throughput_mode: true | ||
|
||
engine: | ||
task: KEYPOINT_DETECTION | ||
device: cpu | ||
|
||
callback_monitor: val/PCK | ||
|
||
data: ../_base_/data/keypoint_detection.yaml | ||
overrides: | ||
reset: | ||
- data.train_subset.transforms | ||
- data.val_subset.transforms | ||
- data.test_subset.transforms | ||
|
||
data: | ||
stack_images: false | ||
train_subset: | ||
batch_size: 1 | ||
num_workers: 2 | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.GetBBoxCenterScale | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) | ||
|
||
val_subset: | ||
batch_size: 1 | ||
num_workers: 2 | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.GetBBoxCenterScale | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) | ||
|
||
test_subset: | ||
batch_size: 64 | ||
num_workers: 2 | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.GetBBoxCenterScale | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) |
This file contains 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.