Python model.CharsetMapper() Examples
The following are 9
code examples of model.CharsetMapper().
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
model
, or try the search function
.
Example #1
Source File: model_test.py From DOTA_models with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #2
Source File: model_test.py From yolo_v2 with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #3
Source File: model_test.py From Gun-Detector with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #4
Source File: model_test.py From hands-detection with MIT License | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #5
Source File: model_test.py From object_detection_kitti with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #6
Source File: model_test.py From object_detection_with_tensorflow with MIT License | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #7
Source File: model_test.py From g-tensorflow-models with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])
Example #8
Source File: model_test.py From models with Apache License 2.0 | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, [b'hello', b'world'])
Example #9
Source File: model_test.py From multilabel-image-classification-tensorflow with MIT License | 5 votes |
def test_text_corresponds_to_ids(self): charset = create_fake_charset(36) ids = tf.constant( [[17, 14, 21, 21, 24], [32, 24, 27, 21, 13]], dtype=tf.int64) charset_mapper = model.CharsetMapper(charset) with self.test_session() as sess: tf.tables_initializer().run() text = sess.run(charset_mapper.get_text(ids)) self.assertAllEqual(text, ['hello', 'world'])