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

Method test_correct_output_shape

tests/test_visualizer.py:111–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

109 v.draw_instance_predictions(inst)
110
111 def test_correct_output_shape(self):
112 img = np.random.rand(928, 928, 3) * 255
113 v = Visualizer(img, self.metadata)
114 out = v.output.get_image()
115 self.assertEqual(out.shape, img.shape)
116
117 def test_overlay_rotated_instances(self):
118 H, W = 100, 150

Callers

nothing calls this directly

Calls 2

VisualizerClass · 0.90
get_imageMethod · 0.80

Tested by

no test coverage detected