90
90
templates = Registry ("otx/algorithms/detection" ).filter (task_type = "DETECTION" ).templates
91
91
templates_ids = [template .model_template_id for template in templates ]
92
92
93
- template_experimental = parse_model_template (
94
- "otx/algorithms/detection/configs/detection/resnet50_deformable-detr/template_experimental.yaml"
95
- )
96
- templates_w_experimental = templates + [template_experimental ]
97
- templates_ids_w_experimental = templates_ids + [template_experimental .model_template_id ]
98
-
99
93
100
94
class TestToolsMPADetection :
101
95
@e2e_pytest_component
102
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
96
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
103
97
def test_otx_train (self , template , tmp_dir_path ):
104
98
tmp_dir_path = tmp_dir_path / "detection"
105
99
otx_train_testing (template , tmp_dir_path , otx_dir , args0 )
@@ -110,7 +104,7 @@ def test_otx_train(self, template, tmp_dir_path):
110
104
111
105
@e2e_pytest_component
112
106
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
113
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
107
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
114
108
def test_otx_resume (self , template , tmp_dir_path ):
115
109
tmp_dir_path = tmp_dir_path / "detection/test_resume"
116
110
otx_resume_testing (template , tmp_dir_path , otx_dir , args )
@@ -124,29 +118,29 @@ def test_otx_resume(self, template, tmp_dir_path):
124
118
125
119
@e2e_pytest_component
126
120
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
127
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
121
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
128
122
@pytest .mark .parametrize ("dump_features" , [True , False ])
129
123
def test_otx_export (self , template , tmp_dir_path , dump_features ):
130
124
tmp_dir_path = tmp_dir_path / "detection"
131
125
otx_export_testing (template , tmp_dir_path , dump_features )
132
126
133
127
@e2e_pytest_component
134
128
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
135
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
129
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
136
130
def test_otx_export_fp16 (self , template , tmp_dir_path ):
137
131
tmp_dir_path = tmp_dir_path / "detection"
138
132
otx_export_testing (template , tmp_dir_path , half_precision = True )
139
133
140
134
@e2e_pytest_component
141
135
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
142
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
136
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
143
137
def test_otx_eval (self , template , tmp_dir_path ):
144
138
tmp_dir_path = tmp_dir_path / "detection"
145
139
otx_eval_testing (template , tmp_dir_path , otx_dir , args )
146
140
147
141
@e2e_pytest_component
148
142
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
149
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
143
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
150
144
@pytest .mark .parametrize ("half_precision" , [True , False ])
151
145
def test_otx_eval_openvino (self , template , tmp_dir_path , half_precision ):
152
146
tmp_dir_path = tmp_dir_path / "detection"
@@ -196,42 +190,42 @@ def test_otx_explain_process_saliency_maps_openvino(self, template, tmp_dir_path
196
190
197
191
@e2e_pytest_component
198
192
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
199
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
193
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
200
194
def test_otx_demo (self , template , tmp_dir_path ):
201
195
tmp_dir_path = tmp_dir_path / "detection"
202
196
otx_demo_testing (template , tmp_dir_path , otx_dir , args )
203
197
204
198
@e2e_pytest_component
205
199
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
206
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
200
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
207
201
def test_otx_demo_openvino (self , template , tmp_dir_path ):
208
202
tmp_dir_path = tmp_dir_path / "detection"
209
203
otx_demo_openvino_testing (template , tmp_dir_path , otx_dir , args )
210
204
211
205
@e2e_pytest_component
212
206
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
213
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
207
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
214
208
def test_otx_deploy_openvino (self , template , tmp_dir_path ):
215
209
tmp_dir_path = tmp_dir_path / "detection"
216
210
otx_deploy_openvino_testing (template , tmp_dir_path , otx_dir , args )
217
211
218
212
@e2e_pytest_component
219
213
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
220
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
214
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
221
215
def test_otx_eval_deployment (self , template , tmp_dir_path ):
222
216
tmp_dir_path = tmp_dir_path / "detection"
223
217
otx_eval_deployment_testing (template , tmp_dir_path , otx_dir , args , threshold = 0.0 )
224
218
225
219
@e2e_pytest_component
226
220
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
227
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
221
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
228
222
def test_otx_demo_deployment (self , template , tmp_dir_path ):
229
223
tmp_dir_path = tmp_dir_path / "detection"
230
224
otx_demo_deployment_testing (template , tmp_dir_path , otx_dir , args )
231
225
232
226
@e2e_pytest_component
233
227
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
234
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
228
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
235
229
def test_otx_hpo (self , template , tmp_dir_path ):
236
230
tmp_dir_path = tmp_dir_path / "detection/test_hpo"
237
231
otx_hpo_testing (template , tmp_dir_path , otx_dir , args )
@@ -288,7 +282,7 @@ def test_nncf_eval_openvino(self, template, tmp_dir_path):
288
282
289
283
@e2e_pytest_component
290
284
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
291
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
285
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
292
286
def test_pot_optimize (self , template , tmp_dir_path ):
293
287
tmp_dir_path = tmp_dir_path / "detection"
294
288
pot_optimize_testing (template , tmp_dir_path , otx_dir , args )
@@ -302,15 +296,15 @@ def test_pot_validate_fq(self, template, tmp_dir_path):
302
296
303
297
@e2e_pytest_component
304
298
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
305
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
299
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
306
300
def test_pot_eval (self , template , tmp_dir_path ):
307
301
tmp_dir_path = tmp_dir_path / "detection"
308
302
pot_eval_testing (template , tmp_dir_path , otx_dir , args )
309
303
310
304
@e2e_pytest_component
311
305
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
312
306
@pytest .mark .skipif (MULTI_GPU_UNAVAILABLE , reason = "The number of gpu is insufficient" )
313
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
307
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
314
308
def test_otx_multi_gpu_train (self , template , tmp_dir_path ):
315
309
tmp_dir_path = tmp_dir_path / "detection/test_multi_gpu"
316
310
args1 = copy .deepcopy (args )
@@ -320,22 +314,22 @@ def test_otx_multi_gpu_train(self, template, tmp_dir_path):
320
314
321
315
class TestToolsMPASemiSLDetection :
322
316
@e2e_pytest_component
323
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
317
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
324
318
def test_otx_train (self , template , tmp_dir_path ):
325
319
tmp_dir_path = tmp_dir_path / "detection/test_semisl"
326
320
otx_train_testing (template , tmp_dir_path , otx_dir , args_semisl )
327
321
328
322
@e2e_pytest_component
329
323
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
330
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
324
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
331
325
def test_otx_eval (self , template , tmp_dir_path ):
332
326
tmp_dir_path = tmp_dir_path / "detection/test_semisl"
333
327
otx_eval_testing (template , tmp_dir_path , otx_dir , args )
334
328
335
329
@e2e_pytest_component
336
330
@pytest .mark .skipif (TT_STABILITY_TESTS , reason = "This is TT_STABILITY_TESTS" )
337
331
@pytest .mark .skipif (MULTI_GPU_UNAVAILABLE , reason = "The number of gpu is insufficient" )
338
- @pytest .mark .parametrize ("template" , templates_w_experimental , ids = templates_ids_w_experimental )
332
+ @pytest .mark .parametrize ("template" , templates , ids = templates_ids )
339
333
def test_otx_multi_gpu_train_semisl (self , template , tmp_dir_path ):
340
334
tmp_dir_path = tmp_dir_path / "detection/test_multi_gpu_semisl"
341
335
args_semisl_multigpu = copy .deepcopy (args_semisl )
0 commit comments