mirror of https://github.com/tensorflow/models.git
parent
f007603b50
commit
d50c441ddd
|
|
@ -60,9 +60,9 @@ class SemanticSegmentationExportTest(tf.test.TestCase, parameterized.TestCase):
|
|||
image_tensor = tf.convert_to_tensor(self._image_array, dtype=tf.uint8)
|
||||
return tf.expand_dims(image_tensor, axis=0)
|
||||
if input_type == 'image_bytes':
|
||||
return [self._image_array.tostring()]
|
||||
return [self._image_array.tobytes()]
|
||||
if input_type == 'tf_example':
|
||||
encoded_image = self._image_array.tostring()
|
||||
encoded_image = self._image_array.tobytes()
|
||||
example = tf.train.Example(
|
||||
features=tf.train.Features(
|
||||
feature={
|
||||
|
|
|
|||
Loading…
Reference in New Issue