import tensorflow as tf

                                       1.0 / model_options.decoder_output_stride)
      decoder_width = scale_dimension(model_options.crop_size[1],
                                      1.0 / model_options.decoder_output_stride)
    else:
      decoder_height = scale_dimension(tf.shape(images)[1],
                                       1.0 / model_options.decoder_output_stride)
      decoder_width = scale_dimension(tf.shape(images)[2],
                                      1.0 / model_options.decoder_output_stride)
    features = refine_by_decoder(
        features,
        end_points,
        decoder_height=decoder_height,
