Python object_detection.core.preprocessor._flip_masks() Examples
The following are 12
code examples of object_detection.core.preprocessor._flip_masks().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
object_detection.core.preprocessor
, or try the search function
.
Example #1
Source File: preprocessor_test.py From DOTA_models with Apache License 2.0 | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #2
Source File: preprocessor_test.py From object_detector_app with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #3
Source File: preprocessor_test.py From garbage-object-detection-tensorflow with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #4
Source File: preprocessor_test.py From HereIsWally with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #5
Source File: preprocessor_test.py From Hands-On-Machine-Learning-with-OpenCV-4 with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #6
Source File: preprocessor_test.py From tensorflow with BSD 2-Clause "Simplified" License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #7
Source File: preprocessor_test.py From moveo_ros with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #8
Source File: preprocessor_test.py From hands-detection with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #9
Source File: preprocessor_test.py From object_detection_kitti with Apache License 2.0 | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #10
Source File: preprocessor_test.py From MBMD with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #11
Source File: preprocessor_test.py From motion-rcnn with MIT License | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())
Example #12
Source File: preprocessor_test.py From mtl-ssl with Apache License 2.0 | 5 votes |
def testFlipMasks(self): test_mask = self.createTestMasks() flipped_mask = preprocessor._flip_masks(test_mask) expected_mask = self.expectedMasksAfterMirroring() with self.test_session() as sess: flipped_mask, expected_mask = sess.run([flipped_mask, expected_mask]) self.assertAllEqual(flipped_mask.flatten(), expected_mask.flatten())