def _images_to_example(image, image2):
 example = tf.SequenceExample()
 feature_list = example.feature_lists.feature_list['moving_objs']
 feature = feature_list.feature.add()
 feature.float_list.value.extend(np.reshape(image, [(-1)]).tolist())
 feature = feature_list.feature.add()
 feature.float_list.value.extend(np.reshape(image2, [(-1)]).tolist())
 return example

def _images_to_example ( image , image2 ) : example = tf . SequenceExample ( ) feature_list = example . feature_lists . feature_list [ 'moving_objs' ] feature = feature_list . feature . add ( ) feature . float_list . value . extend ( np . reshape ( image , [ ( - 1 ) ] ) . tolist ( ) ) feature = feature_list . feature . add ( ) feature . float_list . value . extend ( np . reshape ( image2 , [ ( - 1 ) ] ) . tolist ( ) ) return example
convert two consecutive images to sequenceexample .