dchatel / comfyui_facetools

These custom nodes provide a rotation aware face extraction, paste back, and various face related masking options.
MIT License
76 stars 8 forks source link

[suggestion]would like to have a hands-tool too #25

Open jasoncow007 opened 1 month ago

jasoncow007 commented 1 month ago

detect face node could be optional to hands?

dchatel commented 1 month ago

It could be done, but I'm not sure if there's a preferential orientation regarding hands. I mean, pretty much all generative AI that draw face prefer to have the face in a certain orientation, and I'm not sure this is also true regarding hands.

That said, if the goal is to detect hands, crop them and do whatever on the cropped hands (like redraw them in better resolution), and don't really care about hand orientation, I think it can be done with existing nodes. For example, if you use a Detailer (Segs) combined with the proper hand detector (I think ultralytics node has one), you can do that detailing process easily.

jasoncow007 commented 1 month ago

got it, but I do appreciate your node that make it easier work with ksampler

dchatel commented 1 month ago

Try this: image You see, you don't need to actually use Detailer (Segs) if you don't want to.

And if you need hand segmentation, you can use this for example: https://huggingface.co/spaces/vaishanthr/Hand-Detection-and-Segmentation/tree/main/models