Spaces:
Runtime error
Runtime error
change image resolution
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
|
8 |
|
9 |
def run_lang_sam(input_image, text_prompt, model):
|
10 |
-
image = input_image.convert("RGB").resize((
|
11 |
masks, _, _, _ = model.predict(
|
12 |
image,
|
13 |
text_prompt
|
|
|
7 |
|
8 |
|
9 |
def run_lang_sam(input_image, text_prompt, model):
|
10 |
+
image = input_image.convert("RGB").resize((256, 256))
|
11 |
masks, _, _, _ = model.predict(
|
12 |
image,
|
13 |
text_prompt
|