liusida / ComfyUI-AutoCropFaces

Use RetinaFace to detect and automatically crop faces
MIT License
54 stars 10 forks source link

Implemented image batching, indice range selection and added a test network. #7

Closed nomcycle closed 3 months ago

nomcycle commented 3 months ago

Image batching test: image

Single image test: image

Image batching with no faces test: image

Single image with no faces test: image

All these tests live in a single network ComfyUI/AutoCropFaces/tests/AutoCropFaces-Testing.json

Seems pretty robust? However, one uncertainty I have is how crop_data is returned and what is it used for. Maybe you have some insight into how that works and how I may test that. crop_data is still being returned as a flattened array, but its a grey area for me.

Thanks,

liusida commented 3 months ago

Thanks @nomcycle , looks nice. I'll test after merging. :)

liusida commented 3 months ago

I have adjusted the naming and re-order the widgets of the node since now we have batches to handle.