Spaces:
Sleeping
Sleeping
Merge remote-tracking branch 'origin/main'
Browse files
app.py
CHANGED
@@ -11,7 +11,8 @@ feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
|
11 |
"nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
|
12 |
)
|
13 |
model = TFSegformerForSemanticSegmentation.from_pretrained(
|
14 |
-
"nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
|
|
|
15 |
)
|
16 |
|
17 |
def ade_palette():
|
|
|
11 |
"nvidia/segformer-b2-finetuned-cityscapes-1024-1024"
|
12 |
)
|
13 |
model = TFSegformerForSemanticSegmentation.from_pretrained(
|
14 |
+
"nvidia/segformer-b2-finetuned-cityscapes-1024-1024",
|
15 |
+
from_pt=True
|
16 |
)
|
17 |
|
18 |
def ade_palette():
|