Python object_detection.utils.static_shape.get_batch_size() Examples

The following are 30 code examples of object_detection.utils.static_shape.get_batch_size(). 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.utils.static_shape , or try the search function .
Example #1
Source File: static_shape_test.py    From Elphas with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #2
Source File: static_shape_test.py    From AniSeg with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #3
Source File: static_shape_test.py    From monopsr with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
        tensor_shape = tf.TensorShape(dims=[32, 299, 384])
        with self.assertRaises(ValueError):
            static_shape.get_batch_size(tensor_shape)
            static_shape.get_height(tensor_shape)
            static_shape.get_width(tensor_shape)
            static_shape.get_depth(tensor_shape) 
Example #4
Source File: static_shape_test.py    From monopsr with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
        tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
        self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #5
Source File: static_shape_test.py    From open-solution-googleai-object-detection with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #6
Source File: static_shape_test.py    From g-tensorflow-models with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #7
Source File: static_shape_test.py    From g-tensorflow-models with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #8
Source File: static_shape_test.py    From models with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #9
Source File: static_shape_test.py    From models with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #10
Source File: static_shape_test.py    From motion-rcnn with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #11
Source File: static_shape_test.py    From motion-rcnn with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #12
Source File: static_shape_test.py    From mtl-ssl with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #13
Source File: static_shape_test.py    From open-solution-googleai-object-detection with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #14
Source File: static_shape_test.py    From object_detection_with_tensorflow with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #15
Source File: static_shape_test.py    From object_detection_with_tensorflow with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #16
Source File: static_shape_test.py    From object_detection_with_tensorflow with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #17
Source File: static_shape_test.py    From Elphas with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #18
Source File: static_shape_test.py    From MBMD with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #19
Source File: static_shape_test.py    From MBMD with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #20
Source File: static_shape_test.py    From object_detection_kitti with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #21
Source File: static_shape_test.py    From object_detection_kitti with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #22
Source File: static_shape_test.py    From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #23
Source File: static_shape_test.py    From Live-feed-object-device-identification-using-Tensorflow-and-OpenCV with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #24
Source File: static_shape_test.py    From hands-detection with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #25
Source File: static_shape_test.py    From hands-detection with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #26
Source File: static_shape_test.py    From moveo_ros with MIT License 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #27
Source File: static_shape_test.py    From moveo_ros with MIT License 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #28
Source File: static_shape_test.py    From BMW-TensorFlow-Training-GUI with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape) 
Example #29
Source File: static_shape_test.py    From BMW-TensorFlow-Training-GUI with Apache License 2.0 5 votes vote down vote up
def test_return_correct_batchSize(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384, 3])
    self.assertEqual(32, static_shape.get_batch_size(tensor_shape)) 
Example #30
Source File: static_shape_test.py    From ros_tensorflow with Apache License 2.0 5 votes vote down vote up
def test_die_on_tensor_shape_with_rank_three(self):
    tensor_shape = tf.TensorShape(dims=[32, 299, 384])
    with self.assertRaises(ValueError):
      static_shape.get_batch_size(tensor_shape)
      static_shape.get_height(tensor_shape)
      static_shape.get_width(tensor_shape)
      static_shape.get_depth(tensor_shape)