Exemplo n.º 1
0
 def process_image(self, encoded_image, thread_id=0):
   return image_processing.process_image(encoded_image,
     is_training=self.is_training(),
     height=self.config.image_height,
     width=self.config.image_width,
     thread_id=thread_id,
     image_format=self.config.image_format)
 def process_image(self, encoded_image, thread_id=0):
     return image_processing.process_image(
         encoded_image,
         is_training=self.is_training(),
         height=self.config.image_height,
         width=self.config.image_width,
         thread_id=thread_id,
         image_format=self.config.image_format)
Exemplo n.º 3
0
    def process_image(self, encoded_image):
        """Decodes and processes an image string.
        Inputs:
            encoded_image: A scalar string Tensor; the encoded image.

        Outputs:
            A float32 Tensor of shape [height, width, 3]; the processed image.
        """
        return image_processing.process_image(
            encoded_image,
            mode=self.mode,
            width=self.config.image_width,
            image_format=self.config.image_format)
  def process_image(self, encoded_image, thread_id=0):
    """Decodes and processes an image string.

    Args:
      encoded_image: A scalar string Tensor; the encoded image.
      thread_id: Preprocessing thread id used to select the ordering of color
        distortions.

    Returns:
      A float32 Tensor of shape [height, width, 3]; the processed image.
    """
    return image_processing.process_image(encoded_image,
                                          is_training=self.is_training(),
                                          height=self.config.image_height,
                                          width=self.config.image_width,
                                          thread_id=thread_id,
                                          image_format=self.config.image_format)
  def process_image(self, encoded_image, thread_id=0):
    """Decodes and processes an image string.

    Args:
      encoded_image: A scalar string Tensor; the encoded image.
      thread_id: Preprocessing thread id used to select the ordering of color
        distortions.

    Returns:
      A float32 Tensor of shape [height, width, 3]; the processed image.
    """
    return image_processing.process_image(encoded_image,
                                          is_training=self.is_training(),
                                          height=self.config.image_height,
                                          width=self.config.image_width,
                                          thread_id=thread_id,
                                          image_format=self.config.image_format)
    def process_image(self, encoded_image, thread_id=0, image_idx=0):
        """Decodes and processes an image string.

    Args:
      encoded_image: A scalar string Tensor; the encoded image.
      thread_id: Preprocessing thread id used to select the ordering of color
        distortions. Not used in our model.
      image_idx: Index of the image in an outfit. Only used for summaries.
    Returns:
      A float32 Tensor of shape [height, width, 3]; the processed image.
    """
        return image_processing.process_image(
            encoded_image,
            is_training=self.is_training(),
            height=self.config.image_height,
            width=self.config.image_width,
            image_format=self.config.image_format,
            image_idx=image_idx)