A very simple and easy to use node to automaticaaly create (square) image crops and masks using YoloV8. This can be very useful when using controlnet and ip adapters
A very simple ComfyUI node to help you create image crops and masks using YoloV8.
It is usefull for creating square crops when working with controlnets, ip-adapters etc that need 1:1 ratio input like 1024x1024 for example.
It uses YoloV8 - Ultralytics - with COCO 80 objects for detection added with a specific feature for face detection.
When multiple objects are detected, it will return the biggest bounding box.
All necessary models will be downloaded automatically at first use.
To install this node in addition to an existing installation of ComfyUI, you can follow the following steps:
1. goto ComfyUI/custom_nodes dir in terminal(cmd)
2. git clone https://github.com/tooldigital/ComfyUI-Yolo-Cropper.git
3. Restart ComfyUI