The repository provides code for running inference with the SegmentAnything Model (SAM), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
45.64k
stars
5.39k
forks
source link
How can I add an object that is segmented to the extracted mask? Using Segment Anything model? #616
I want to add an object that is segmented on the extracted mask.
mask_image = (mask * 255).astype(np.uint8) cv2.imwrite('mask.png', mask_image)