Skip to content

Commit 8f96f27

Browse files
kprokofiharimkangsungchul1
authored
Move templates from OTX1.X to OTX2.X (#3951)
* add otx1.6 templates * added new models * delete entrypoints and nncf cfg * updated some hyperparams * fix for rtmdet_tiny * updated converter * Update classification templates * Update det, r-det, vpm * Update template.yaml * changed warmaup value in train.yaml --------- Co-authored-by: Kang, Harim <[email protected]> Co-authored-by: Kim, Sungchul <[email protected]>
1 parent ac87b49 commit 8f96f27

File tree

69 files changed

+8021
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+8021
-7
lines changed

src/otx/recipe/detection/rtdetr_101.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ model:
1313
scheduler:
1414
class_path: otx.core.schedulers.LinearWarmupSchedulerCallable
1515
init_args:
16-
num_warmup_steps: 5
16+
num_warmup_steps: 100
1717
main_scheduler_callable:
1818
class_path: lightning.pytorch.cli.ReduceLROnPlateau
1919
init_args:

src/otx/recipe/detection/rtdetr_18.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ model:
1313
scheduler:
1414
class_path: otx.core.schedulers.LinearWarmupSchedulerCallable
1515
init_args:
16-
num_warmup_steps: 5
16+
num_warmup_steps: 100
1717
main_scheduler_callable:
1818
class_path: lightning.pytorch.cli.ReduceLROnPlateau
1919
init_args:

src/otx/recipe/detection/rtdetr_50.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ model:
1313
scheduler:
1414
class_path: otx.core.schedulers.LinearWarmupSchedulerCallable
1515
init_args:
16-
num_warmup_steps: 5
16+
num_warmup_steps: 100
1717
main_scheduler_callable:
1818
class_path: lightning.pytorch.cli.ReduceLROnPlateau
1919
init_args:

src/otx/recipe/semantic_segmentation/dino_v2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ model:
1919
scheduler:
2020
class_path: torch.optim.lr_scheduler.PolynomialLR
2121
init_args:
22-
total_iters: 100
22+
total_iters: 150
2323
power: 0.9
2424
last_epoch: -1
2525

src/otx/recipe/semantic_segmentation/segnext_b.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ model:
2020
main_scheduler_callable:
2121
class_path: torch.optim.lr_scheduler.PolynomialLR
2222
init_args:
23-
total_iters: 100
23+
total_iters: 150
2424
power: 0.9
2525
last_epoch: -1
2626

src/otx/recipe/semantic_segmentation/segnext_s.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ model:
2020
main_scheduler_callable:
2121
class_path: torch.optim.lr_scheduler.PolynomialLR
2222
init_args:
23-
total_iters: 100
23+
total_iters: 150
2424
power: 0.9
2525
last_epoch: -1
2626

src/otx/recipe/semantic_segmentation/segnext_t.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ model:
2020
main_scheduler_callable:
2121
class_path: torch.optim.lr_scheduler.PolynomialLR
2222
init_args:
23-
total_iters: 100
23+
total_iters: 150
2424
power: 0.9
2525
last_epoch: -1
2626

src/otx/tools/converter.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@
4040
"task": OTXTaskType.MULTI_CLASS_CLS,
4141
"model_name": "mobilenet_v3_large",
4242
},
43+
"Custom_Image_Classification_EfficinetNet-B3": {
44+
"task": OTXTaskType.MULTI_CLASS_CLS,
45+
"model_name": "tv_efficientnet_b3",
46+
},
47+
"Custom_Image_Classification_EfficinetNet-V2-L": {
48+
"task": OTXTaskType.MULTI_CLASS_CLS,
49+
"model_name": "tv_efficientnet_v2_l",
50+
},
51+
"Custom_Image_Classification_MobileNet-V3-small": {
52+
"task": OTXTaskType.MULTI_CLASS_CLS,
53+
"model_name": "tv_mobilenet_v3_small",
54+
},
4355
# DETECTION
4456
"Custom_Object_Detection_Gen3_ATSS": {
4557
"task": OTXTaskType.DETECTION,
@@ -69,6 +81,22 @@
6981
"task": OTXTaskType.DETECTION,
7082
"model_name": "yolox_tiny",
7183
},
84+
"Object_Detection_RTDetr_18": {
85+
"task": OTXTaskType.DETECTION,
86+
"model_name": "rtdetr_18",
87+
},
88+
"Object_Detection_RTDetr_50": {
89+
"task": OTXTaskType.DETECTION,
90+
"model_name": "rtdetr_50",
91+
},
92+
"Object_Detection_RTDetr_101": {
93+
"task": OTXTaskType.DETECTION,
94+
"model_name": "rtdetr_101",
95+
},
96+
"Object_Detection_RTMDet_tiny": {
97+
"task": OTXTaskType.DETECTION,
98+
"model_name": "rtmdet_tiny",
99+
},
72100
# INSTANCE_SEGMENTATION
73101
"Custom_Counting_Instance_Segmentation_MaskRCNN_ResNet50": {
74102
"task": OTXTaskType.INSTANCE_SEGMENTATION,
@@ -82,6 +110,10 @@
82110
"task": OTXTaskType.INSTANCE_SEGMENTATION,
83111
"model_name": "maskrcnn_efficientnetb2b",
84112
},
113+
"Custom_Instance_Segmentation_RTMDet_tiny": {
114+
"task": OTXTaskType.INSTANCE_SEGMENTATION,
115+
"model_name": "rtmdet_inst_tiny",
116+
},
85117
# ROTATED_DETECTION
86118
"Custom_Rotated_Detection_via_Instance_Segmentation_MaskRCNN_ResNet50": {
87119
"task": OTXTaskType.ROTATED_DETECTION,
@@ -120,6 +152,10 @@
120152
"task": OTXTaskType.SEMANTIC_SEGMENTATION,
121153
"model_name": "segnext_b",
122154
},
155+
"Custom_Semantic_Segmentation_DINOV2_S": {
156+
"task": OTXTaskType.SEMANTIC_SEGMENTATION,
157+
"model_name": "dino_v2",
158+
},
123159
# ANOMALY_CLASSIFICATION
124160
"ote_anomaly_classification_padim": {
125161
"task": OTXTaskType.ANOMALY_CLASSIFICATION,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
"""YAML file templates for the models OTX provides."""

0 commit comments

Comments
 (0)