Visit ComfyUI Online for ready-to-use ComfyUI environment
Identifies objects in images using YOLO models, creates masks for isolation in artwork, simplifying object detection for image editing.
The BMAB Detector node is designed to identify and create masks for specific objects within an image using pre-trained YOLO (You Only Look Once) models. This node is particularly useful for AI artists who need to detect and isolate elements such as faces, hands, or people in their artwork. By leveraging advanced object detection algorithms, the BMAB Detector can accurately pinpoint the location of these objects and generate corresponding masks, which can then be used for further image processing tasks like cropping, inpainting, or compositing. This node simplifies the process of object detection, making it accessible even to those without a deep technical background, and enhances the efficiency and precision of image editing workflows.
The image
parameter expects an input of type IMAGE
. This is the image in which the objects will be detected. The quality and resolution of the input image can impact the accuracy of the detection results. Ensure that the image is clear and well-lit for optimal performance.
The model
parameter allows you to select from a list of pre-trained YOLO models. The available options include face_yolov8n.pt
, face_yolov8n_v2.pt
, face_yolov8m.pt
, face_yolov8s.pt
, hand_yolov8n.pt
, hand_yolov8s.pt
, person_yolov8m-seg.pt
, person_yolov8n-seg.pt
, and person_yolov8s-seg.pt
. Each model is specialized for detecting different types of objects, such as faces, hands, or people. Choose the model that best fits your detection needs. The selection of the appropriate model is crucial for achieving accurate detection results.
The masks
parameter is the output of the node and is of type MASK
. This output consists of masks corresponding to the detected objects in the input image. Each mask is a binary image where the detected object areas are highlighted. These masks can be used for various image processing tasks, such as isolating objects, applying effects, or further editing. The masks provide a precise way to manipulate specific parts of the image without affecting the rest of the content.
utils.list_pretraining_models()
function.© Copyright 2024 RunComfy. All Rights Reserved.