liusida / ComfyUI-AutoCropFaces

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

request: would like to have crop data output #1

Closed manassm closed 5 months ago

manassm commented 5 months ago

I really like how well this node works. I think it works better for my use than WAS image crop face node. I wish it had crop data output as well, so I can zoom into a face, use it for i2i, and paste it back onto the original image. It might be even better if you can make separate crop paste node as well, but if WAS image paste face node is compatible with the paste data output, that may be suffice as well.

Thank you very much.

liusida commented 5 months ago

Thanks @manassm

I wish it had crop data output as well, so I can zoom into a face, use it for i2i, and paste it back onto the original image.

Can you explain this a bit more, maybe give a visual example of your use case (workflow)? I am having trouble understand the feature you described.

Is crop data output two coordinates? x1, y1, x2, y2?

liusida commented 5 months ago

I've installed WAS (https://github.com/WASasquatch/was-node-suite-comfyui) for the first time, and I see what CROP_DATA was.

Sorry, never installed that and didn't know there's another node for this purpose, xD

liusida commented 5 months ago

image

liusida commented 5 months ago

As you mentioned, I am thinking about, maybe later, I'll make a similar node to "Image Paste Crop" from WAS suite, since that suite is a bit heavy and has too many dependencies.

manassm commented 5 months ago

스크린샷 2024-05-20 161407 This is the example workflow I am working on, where I take face part of the image, crop it out, modify it, and paste it back to the original image. Here I am using the WAS node version of it, but I personally find your node to work better, in some cases, for face detection and cropping the portion with only the face. Thank you for your support.

liusida commented 5 months ago

Cropping is for rectangle areas. Do you mean you want to do face swapping? There's a node for that, I think.

liusida commented 5 months ago

Try this one: https://github.com/Gourieff/comfyui-reactor-node

manassm commented 5 months ago

I'm not sure about particular one you mentioned yet, but seemed like face swapping didn't particularly work well with stylied anime faces. But I will look into it. Thank you.

liusida commented 5 months ago

I'm not sure about particular one you mentioned yet, but seemed like face swapping didn't particularly work well with stylied anime faces. But I will look into it. Thank you.

Yeah, you're right. I think nobody has really thought about swapping faces for anime characters yet.

liusida commented 4 months ago

face

I think you'll be like this @manassm

workflow embedded in the png