Python models.small_decoder() Examples
The following are 20
code examples of models.small_decoder().
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
models
, or try the search function
.
Example #1
Source File: models_test.py From DOTA_models with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #2
Source File: models_test.py From yolo_v2 with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #3
Source File: models_test.py From multilabel-image-classification-tensorflow with MIT License | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #4
Source File: models_test.py From Gun-Detector with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #5
Source File: models_test.py From hands-detection with MIT License | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #6
Source File: models_test.py From models with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #7
Source File: models_test.py From object_detection_kitti with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #8
Source File: models_test.py From object_detection_with_tensorflow with MIT License | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #9
Source File: models_test.py From g-tensorflow-models with Apache License 2.0 | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #10
Source File: models_test.py From HumanRecognition with MIT License | 6 votes |
def _testDecoder(self, height=64, width=64, channels=4, batch_norm_params=None, decoder=models.small_decoder): codes = tf.to_float(np.random.rand(32, 100)) with self.test_session() as sess: output = decoder( codes, height=height, width=width, channels=channels, batch_norm_params=batch_norm_params) sess.run(tf.global_variables_initializer()) output_np = sess.run(output) self.assertEqual(output_np.shape, (32, height, width, channels)) self.assertTrue(np.any(output_np)) self.assertTrue(np.all(np.isfinite(output_np)))
Example #11
Source File: models_test.py From multilabel-image-classification-tensorflow with MIT License | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #12
Source File: models_test.py From models with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #13
Source File: models_test.py From g-tensorflow-models with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #14
Source File: models_test.py From HumanRecognition with MIT License | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #15
Source File: models_test.py From object_detection_with_tensorflow with MIT License | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #16
Source File: models_test.py From object_detection_kitti with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #17
Source File: models_test.py From hands-detection with MIT License | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #18
Source File: models_test.py From Gun-Detector with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #19
Source File: models_test.py From yolo_v2 with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))
Example #20
Source File: models_test.py From DOTA_models with Apache License 2.0 | 5 votes |
def testSmallDecoder(self): self._testDecoder(28, 28, 4, None, getattr(models, 'small_decoder'))