Skip to content

Commit

Permalink
add fp16 back for efficientnetb2b_maskrcnn and add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene123tw committed May 9, 2022
1 parent d975d18 commit 5ea7a47
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@
dict(type='EarlyStoppingHook', patience=10, metric='mAP',
interval=1, priority=75, iteration_patience=0),
]
fp16 = dict(loss_scale=512.)
49 changes: 49 additions & 0 deletions external/mmdetection/tests/ote_cli/test_instance_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
ote_eval_testing,
ote_train_testing,
ote_export_testing,
nncf_optimize_testing,
nncf_export_testing,
nncf_eval_testing,
ote_hpo_testing,
nncf_eval_openvino_testing,
pot_optimize_testing,
pot_eval_testing
)


Expand Down Expand Up @@ -111,3 +118,45 @@ def test_ote_eval_deployment(self, template):
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_ote_demo_deployment(self, template):
ote_demo_deployment_testing(template, root, ote_dir, args)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_nncf_optimize(self, template):
if template.entrypoints.nncf is None:
pytest.skip("nncf entrypoint is none")

nncf_optimize_testing(template, root, ote_dir, args)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_nncf_export(self, template):
if template.entrypoints.nncf is None:
pytest.skip("nncf entrypoint is none")

nncf_export_testing(template, root)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_nncf_eval(self, template):
if template.entrypoints.nncf is None:
pytest.skip("nncf entrypoint is none")

nncf_eval_testing(template, root, ote_dir, args, threshold=0.001)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_nncf_eval_openvino(self, template):
if template.entrypoints.nncf is None:
pytest.skip("nncf entrypoint is none")

nncf_eval_openvino_testing(template, root, ote_dir, args)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_pot_optimize(self, template):
pot_optimize_testing(template, root, ote_dir, args)

@e2e_pytest_component
@pytest.mark.parametrize("template", templates, ids=templates_ids)
def test_pot_eval(self, template):
pot_eval_testing(template, root, ote_dir, args)

0 comments on commit 5ea7a47

Please sign in to comment.