File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
recipe/keypoint_detection Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 5
5
6
6
from __future__ import annotations
7
7
8
+ import logging
8
9
from typing import TYPE_CHECKING
9
10
10
11
from otx .algo .common .backbones import CSPNeXt
25
26
from otx .core .types .label import LabelInfoTypes
26
27
27
28
29
+ logger = logging .getLogger ()
30
+
31
+
28
32
class RTMPose (OTXKeypointDetectionModel ):
29
33
"""OTX keypoint detection model class for RTMPose."""
30
34
@@ -37,7 +41,7 @@ def _exporter(self) -> OTXModelExporter:
37
41
38
42
if self .explain_mode :
39
43
msg = "Export with explain is not supported for RTMPose model."
40
- raise ValueError (msg )
44
+ logger . warning (msg )
41
45
42
46
return OTXNativeModelExporter (
43
47
task_level_export_parameters = self ._export_parameters ,
Original file line number Diff line number Diff line change 55
55
TASK_PER_DATA_FORMAT = {
56
56
"imagenet_with_subset_dirs" : [OTXTaskType .MULTI_CLASS_CLS , OTXTaskType .H_LABEL_CLS ],
57
57
"datumaro" : [OTXTaskType .MULTI_LABEL_CLS ],
58
+ "coco_person_keypoints" : [OTXTaskType .KEYPOINT_DETECTION ],
58
59
"coco_instances" : [
59
60
OTXTaskType .DETECTION ,
60
61
OTXTaskType .ROTATED_DETECTION ,
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ overrides:
26
26
batch_size : 1
27
27
num_workers : 2
28
28
transforms :
29
+ - class_path : otx.core.data.transform_libs.torchvision.GetBBoxCenterScale
29
30
- class_path : otx.core.data.transform_libs.torchvision.TopdownAffine
30
31
init_args :
31
32
input_size : $(input_size)
@@ -34,6 +35,7 @@ overrides:
34
35
batch_size : 1
35
36
num_workers : 2
36
37
transforms :
38
+ - class_path : otx.core.data.transform_libs.torchvision.GetBBoxCenterScale
37
39
- class_path : otx.core.data.transform_libs.torchvision.TopdownAffine
38
40
init_args :
39
41
input_size : $(input_size)
@@ -42,6 +44,7 @@ overrides:
42
44
batch_size : 64
43
45
num_workers : 2
44
46
transforms :
47
+ - class_path : otx.core.data.transform_libs.torchvision.GetBBoxCenterScale
45
48
- class_path : otx.core.data.transform_libs.torchvision.TopdownAffine
46
49
init_args :
47
50
input_size : $(input_size)
You can’t perform that action at this time.
0 commit comments