-
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 keypoint detection recipe for single object cases (#3903)
* add rtmpose_tiny for single obj * add rtmpose_tiny for single obj * modify test subset name * fix unit test * update recipe with reset
- Loading branch information
Showing
6 changed files
with
140 additions
and
26 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
81 changes: 81 additions & 0 deletions
81
src/otx/recipe/keypoint_detection/rtmpose_tiny_single_obj.yaml
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,81 @@ | ||
model: | ||
class_path: otx.algo.keypoint_detection.rtmpose.RTMPoseTiny | ||
init_args: | ||
label_info: 17 | ||
|
||
optimizer: | ||
class_path: torch.optim.AdamW | ||
init_args: | ||
lr: 0.001 | ||
weight_decay: 0.0001 | ||
|
||
scheduler: | ||
class_path: otx.core.schedulers.LinearWarmupSchedulerCallable | ||
init_args: | ||
num_warmup_steps: 3 | ||
main_scheduler_callable: | ||
class_path: lightning.pytorch.cli.ReduceLROnPlateau | ||
init_args: | ||
mode: max | ||
factor: 0.1 | ||
patience: 9 | ||
monitor: val/accuracy | ||
|
||
engine: | ||
task: KEYPOINT_DETECTION | ||
device: auto | ||
|
||
callback_monitor: val/accuracy | ||
|
||
data: ../_base_/data/keypoint_detection.yaml | ||
|
||
overrides: | ||
gradient_clip_val: 35.0 | ||
reset: | ||
- data.train_subset.transforms | ||
- data.val_subset.transforms | ||
- data.test_subset.transforms | ||
input_size: | ||
- 512 | ||
- 512 | ||
train_subset: | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) | ||
- class_path: otx.core.data.transform_libs.torchvision.YOLOXHSVRandomAug | ||
init_args: | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
val_subset: | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] | ||
test_subset: | ||
transforms: | ||
- class_path: otx.core.data.transform_libs.torchvision.TopdownAffine | ||
init_args: | ||
input_size: $(input_size) | ||
is_numpy_to_tvtensor: true | ||
- class_path: torchvision.transforms.v2.ToDtype | ||
init_args: | ||
dtype: ${as_torch_dtype:torch.float32} | ||
- class_path: torchvision.transforms.v2.Normalize | ||
init_args: | ||
mean: [123.675, 116.28, 103.53] | ||
std: [58.395, 57.12, 57.375] |
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