switch to sam2 large
Browse files
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-
|
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"])
|