not-lain commited on
Commit
430a7a9
·
1 Parent(s): 9dbd7e8

switch to sam2 large

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -125,7 +125,7 @@ def rmbg(image=None, url=None):
125
 
126
  def mask_generation(image=None, d=None):
127
  d = eval(d) # convert this to dictionary
128
- predictor = SAM2ImagePredictor.from_pretrained("facebook/sam2-hiera-tiny")
129
  predictor.set_image(image)
130
  input_point = np.array(d["input_points"])
131
  input_label = np.array(d["input_labels"])
 
125
 
126
  def mask_generation(image=None, d=None):
127
  d = eval(d) # convert this to dictionary
128
+ predictor = SAM2ImagePredictor.from_pretrained("facebook/sam2.1-hiera-large")
129
  predictor.set_image(image)
130
  input_point = np.array(d["input_points"])
131
  input_label = np.array(d["input_labels"])