kijai / ComfyUI-segment-anything-2

ComfyUI nodes to use segment-anything-2
Apache License 2.0
543 stars 33 forks source link

Accuracy #37

Open JohnSundayBigChin opened 3 weeks ago

JohnSundayBigChin commented 3 weeks ago

Hi, this is not really an issue, I just wanted to know why there are differences in the segmentation/masking/rotoscoping results between the published models run locally and the one obtained directly from the META page. Is it because of the model implementation, computing power or a Comfy UI limitation?

kijai commented 3 weeks ago

There shouldn't be any differences (unless there's been an update) in the detection and the raw mask, however this node doesn't do any postprocessing, so the raw output isn't comparable to the official demo. There are other nodes that can do post processing, such as filling holes or smoothing the edges, for example my GrowMaskWithBlur.

JohnSundayBigChin commented 2 weeks ago

Thanks for replying, I'm going to try that node now. By the way, you've done an excellent job, much appreciated for sharing.