kijai / ComfyUI-KJNodes

Various custom nodes for ComfyUI
GNU General Public License v3.0
528 stars 63 forks source link

Potential enhancements for points editor #97

Open kevinramirez723 opened 1 month ago

kevinramirez723 commented 1 month ago

I know it's still very early in development, and having tried it with your ComfyUI SAM 2 implementation, here are some thoughts I have that would help for that use case. I don't know where you plan to go with the node so pardon me if you have already considered these points and are already working towards something similar or have ruled them out for one reason or another.

I'm also not opposed to trying my hand at implementing some of these thoughts but I'll wait until its less work-in-progress. Regardless, really appreciate the work you're doing!

kijai commented 1 month ago

I have thought of all that, what's limiting me is my lack of JavaScript skills, everything I've done I've had to learn first as I have no previous experience.

For the bg_image you can already use copy/paste with it so it's not that much trouble to just right click on an image, copy and paste it in. Alternatives I've thought of is possibly grabbing the image from the Loader node as it (or link to it) should be saved in the Loader node by same virtual link.

I kinda wanted the results of the segmentation to be shown in the editor too, but that would make endless loop with how ComfyUI execution is setup... not sure how to tackle that, at least without more JavaScript.

kijai commented 1 month ago

Negative points should now be in, also made the normalization a boolean rather as it's cleaner.

grandparodeo commented 1 month ago

Two more enhancement ideas:

Ability to scale the size of the points editor node without losing functionality.

Ability to pull a specific frame from an input video.

Brilliant work!

jokero3answer commented 1 month ago

3db077a7ce854f1da24c3565565bbda

jokero3answer commented 1 month ago

How to add more than three points, I left-click and right-click do not respond! image @kijai

kijai commented 1 month ago

How to add more than three points, I left-click and right-click do not respond! image @kijai

Shift+ left click for positive, shift+ right click for negative.