          pad = self._set_padding(item.image_size, scale)
  
          image = self._scale_image(image, item.image_size, scale)
          image = self._pad_image(image)
          logger.trace("compiled: (images shape: %s, scale: %s, pad: %s)",  # type:ignore
                       image.shape, scale, pad)
          return image, scale, pad
  
      def _set_scale(self, image_size: Tuple[int, int]) -> float:
          """ Set the scale factor for incoming image
 
</s> remove         logger.trace("Detector scale: %s", scale)  # type:ignore
 </s> add         logger.trace("Detector scale: %s", scale)  # type:ignore[attr-defined] </s> remove             logger.trace("Resizing detection image from %s to %s. Scale=%s",  # type:ignore
 </s> add             logger.trace("Resizing detection image from %s to %s. "  # type:ignore[attr-defined]
                         "Scale=%s", </s> remove         logger.trace("Rotating image: (image: %s, angle: %s)",  # type:ignore
 </s> add         logger.trace("Rotating image: (image: %s, angle: %s)",  # type:ignore[attr-defined] </s> remove         logger.trace("Resized image shape: %s", image.shape)  # type:ignore
 </s> add         logger.trace("Resized image shape: %s", image.shape)  # type:ignore[attr-defined] </s> remove         logger.trace("detect_prediction output: (filenames: %s, prediction: %s, "  # type:ignore
                     "rotmat: %s)", batch.filename, batch.prediction, batch.rotation_matrix)
 </s> add         logger.trace("detect_prediction output: (filenames: %s, "  # type:ignore[attr-defined]
                     "prediction: %s, rotmat: %s)",
                     batch.filename, batch.prediction, batch.rotation_matrix)
        logger.trace("compiled: (images shape: %s, "  # type:ignore[attr-defined]
                     "scale: %s, pad: %s)",
          pad = self._set_padding(item.image_size, scale)
  
          image = self._scale_image(image, item.image_size, scale)
          image = self._pad_image(image)
        logger.trace("compiled: (images shape: %s, "  # type:ignore[attr-defined]
                     "scale: %s, pad: %s)",
                       image.shape, scale, pad)
          return image, scale, pad
  
      def _set_scale(self, image_size: Tuple[int, int]) -> float:
          """ Set the scale factor for incoming image
keep keep keep keep replace keep keep keep keep keep
 bugfix: Extract - rotation in detection 
plugins/extract/detect/_base.py