ComfyUI-Yolo-Cropper is a specialized node for ComfyUI that facilitates the creation of image crops and masks using the YoloV8 object detection model. It is particularly useful for generating square crops necessary for applications like controlnets and IP-adapters that require a 1:1 aspect ratio.
- Utilizes YoloV8 for accurate object detection, including a dedicated feature for face detection.
- Automatically downloads required models upon first use, ensuring seamless integration.
- Produces multiple outputs such as bounding boxes, original and square cropped images, and corresponding masks.
Context
ComfyUI-Yolo-Cropper serves as an enhancement within the ComfyUI framework, allowing users to efficiently manage image cropping and masking tasks. Its integration with YoloV8 enables precise detection of objects, which is essential for workflows that demand specific image dimensions.
Key Features & Benefits
This tool offers practical features like the ability to select from COCO 80 object categories, including an additional face detection option. The automatic model downloading simplifies setup, and the various output formats, such as bounding boxes and masks, provide flexibility for further processing in AI art workflows.
Advanced Functionalities
One of the advanced capabilities of this tool is its ability to return the largest bounding box when multiple objects are detected within an image. This feature is particularly beneficial for users who need to focus on the most prominent subject in their compositions.
Practical Benefits
By streamlining the cropping process and providing essential outputs, ComfyUI-Yolo-Cropper enhances workflow efficiency and control over image quality in ComfyUI. This results in a more effective and organized approach to preparing images for various AI applications.
Credits/Acknowledgments
This project is developed by the contributors at tooldigital and relies on the YoloV8 model from Ultralytics. All necessary licenses and acknowledgments are attributed within the repository.