HQ-SAM is a high quality version of the Segment Anything Model. It can be used a drop-in replacement.