"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "28f9d84549c0b1d24ef00d69a4c723f3a11cffb6"
Unverified Commit 4c563846 authored by Vasilis Vryniotis's avatar Vasilis Vryniotis Committed by GitHub
Browse files

Speedup the slow tests of detection models (#3929)

* Speed up keypoint and retina.

* Update keypoint expected file

* Speed up fasterrcnn_resnet50_fpn.

* Speed up maskrcnn_resnet50_fpn.

* Updating params to resolve flakiness.

* limit runs to those 4 tests

* Relaxing precision to resolve flakiness

* Undo test filtering
parent e3e7c256
...@@ -311,7 +311,7 @@ class TestCase(unittest.TestCase): ...@@ -311,7 +311,7 @@ class TestCase(unittest.TestCase):
results = m(*args) results = m(*args)
with freeze_rng_state(): with freeze_rng_state():
results_from_imported = m_import(*args) results_from_imported = m_import(*args)
self.assertEqual(results, results_from_imported, prec=3e-5) self.assertEqual(results, results_from_imported, prec=3e-4)
@contextlib.contextmanager @contextlib.contextmanager
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -81,7 +81,30 @@ _model_params = { ...@@ -81,7 +81,30 @@ _model_params = {
'input_shape': (1, 3, 299, 299) 'input_shape': (1, 3, 299, 299)
}, },
'retinanet_resnet50_fpn': { 'retinanet_resnet50_fpn': {
'num_classes': 20,
'score_thresh': 0.01, 'score_thresh': 0.01,
'min_size': 224,
'max_size': 224,
'input_shape': (3, 224, 224),
},
'keypointrcnn_resnet50_fpn': {
'num_classes': 2,
'min_size': 224,
'max_size': 224,
'box_score_thresh': 0.15,
'input_shape': (3, 224, 224),
},
'fasterrcnn_resnet50_fpn': {
'num_classes': 20,
'min_size': 224,
'max_size': 224,
'input_shape': (3, 224, 224),
},
'maskrcnn_resnet50_fpn': {
'num_classes': 10,
'min_size': 224,
'max_size': 224,
'input_shape': (3, 224, 224),
}, },
'fasterrcnn_mobilenet_v3_large_fpn': { 'fasterrcnn_mobilenet_v3_large_fpn': {
'box_score_thresh': 0.02076, 'box_score_thresh': 0.02076,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment