from grounded_sam.app import get_mask from PIL import Image x = get_mask(Image.open("girl.png"), "a person", expand_by=10 ) x.save("sam_test.png")