-
Notifications
You must be signed in to change notification settings - Fork 2
Image Processing Tasks
Don Kackman edited this page Jan 5, 2025
·
4 revisions
These are the image tasks that can be used as pre and post processors.
- Description: Returns the dimensions of the image.
-
Arguments:
-
image: The input image.
-
- Description: Adds a border and mask to the image. Used for outpainting
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for border and mask customization.
-
- Description: Removes the background from the image.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for background removal customization.
-
- Description: Applies Canny edge detection using OpenCV.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for Canny edge detection.
-
- Description: Applies MLSD (Multi-Line Segment Detector) to the image.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for MLSD customization.
-
- Description: Applies Normal BAE (Boundary Aware Edge) detection.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for Normal BAE customization.
-
- Description: Segments the image into different regions.
-
Arguments:
-
image: The input image.
-
- Description: Converts the image to line art.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for line art customization.
-
- Description: Detects human poses in the image.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for pose detection.
-
- Description: Applies Holistically-Nested Edge Detection (HED).
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for HED customization.
-
- Description: Applies HED with scribble mode enabled.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for scribble mode.
-
- Description: Applies PidiNet edge detection.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for PidiNet customization.
-
- Description: Estimates depth using the MiDaS model.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for depth estimation.
-
- Description: Applies content shuffling to the image.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for content shuffling.
-
- Description: Detects faces in the image.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for face detection.
-
- Description: Applies Canny edge detection.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for Canny edge detection.
-
- Description: Converts the image to standard line art.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for line art conversion.
-
- Description: Detects poses using the DWpose model.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for pose detection.
-
- Description: Generates a depth map using the Zoe model.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on.
-
- Description: Applies the Zoe model for depth estimation.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for Zoe model.
-
- Description: Applies the SAM (Segment Anything Model) for segmentation.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for SAM.
-
- Description: Applies TEED (Transformer-based Edge Detection).
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for TEED.
-
- Description: Applies Anyline detection.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for Anyline detection.
-
- Description: Applies LeReS (Learning to Restore) for depth estimation.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for LeReS.
-
- Description: Converts the image to a depth map.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on. -
kwargs: Additional keyword arguments for depth conversion.
-
- Description: Generates a depth hint tensor from the image.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on.
-
- Description: Generates a depth hint image from the image.
-
Arguments:
-
image: The input image. -
device_identifier: The device to perform the operation on.
-
- Description: Resizes and center crops the image.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for resizing and cropping.
-
- Description: Resizes the image with resampling.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for resizing.
-
- Description: Crops the image to a square.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for cropping.
-
- Description: Resizes and rescales the image.
-
Arguments:
-
image: The input image. -
kwargs: Additional keyword arguments for resizing and rescaling.
-
- Each processor may have specific requirements for the input image format and additional arguments. Ensure that the image and arguments are compatible with the processor being used.
- The
device_identifieris typically used to specify the hardware (e.g., CPU or GPU) on which the processing should be performed.