Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -247,10 +247,10 @@ def get_segmentation_pipeline(
|
|
247 |
Tuple[AutoImageProcessor, UperNetForSemanticSegmentation]: segmentation pipeline
|
248 |
"""
|
249 |
image_processor = AutoImageProcessor.from_pretrained(
|
250 |
-
"openmmlab/upernet-convnext-
|
251 |
)
|
252 |
image_segmentor = UperNetForSemanticSegmentation.from_pretrained(
|
253 |
-
"openmmlab/upernet-convnext-
|
254 |
)
|
255 |
return image_processor, image_segmentor
|
256 |
|
|
|
247 |
Tuple[AutoImageProcessor, UperNetForSemanticSegmentation]: segmentation pipeline
|
248 |
"""
|
249 |
image_processor = AutoImageProcessor.from_pretrained(
|
250 |
+
"openmmlab/upernet-convnext-small"
|
251 |
)
|
252 |
image_segmentor = UperNetForSemanticSegmentation.from_pretrained(
|
253 |
+
"openmmlab/upernet-convnext-small"
|
254 |
)
|
255 |
return image_processor, image_segmentor
|
256 |
|