MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / test_half_empty_data

Method test_half_empty_data

tests/modeling/test_model_e2e.py:96–98  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 CONFIG_PATH = "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml"
95
96 def test_half_empty_data(self):
97 instances = [get_empty_instance(200, 250), get_regular_bitmask_instances(200, 249)]
98 self._test_train([(200, 250), (200, 249)], instances)
99
100 # This test is flaky because in some environment the output features are zero due to relu
101 # def test_rpn_inf_nan_data(self):

Callers

nothing calls this directly

Calls 3

get_empty_instanceFunction · 0.85
_test_trainMethod · 0.80

Tested by

no test coverage detected