neverbiasu / ComfyUI-SAM2

A ComfyUI extension for Segment-Anything 2
54 stars 9 forks source link

Visible edge jaggedness, is it common for SAM model? #24

Open Young-Chin opened 2 weeks ago

Young-Chin commented 2 weeks ago

As we can see in the pic, there is some visible edge jaggedness(bottom), is it common for the SAM model? And, are there any solutions?

Thx~

1726631413948

neverbiasu commented 1 week ago

Rarely occurs, what the source of this picture is?

Young-Chin commented 1 week ago

The first image is the source image, the other image also appears to have bad clothing edges.

360946871131137_RMxe_lo1_0 6623896295424_fRcz_lo0_0 1726714530809

neverbiasu commented 1 week ago

I suppose these images is generated by AI, which has insufficient edge detail between foreground and background.

Young-Chin commented 1 week ago

I agree with you that it might be one of the reasons. However, I tried another model ComfyUI-BRIA_AI-RMBG, which gives a smooth edge. So, there are potential problems with SAM and SAM2 when dealing with such cases.

But it can't work well with the hands part. image