File size: 147 Bytes
72dddd7
 
 
 
 
1
2
3
4
5
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")