Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,11 @@ import numpy as np
|
|
9 |
import tensorflow as tf
|
10 |
|
11 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
12 |
-
"
|
|
|
13 |
model = SegformerForSemanticSegmentation.from_pretrained(
|
14 |
-
"
|
|
|
15 |
|
16 |
def ade_palette():
|
17 |
"""ADE20K palette that maps each class to RGB values."""
|
|
|
9 |
import tensorflow as tf
|
10 |
|
11 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
12 |
+
"nielsr/segformer-b0-finetuned-segments-sidewalk",
|
13 |
+
from_pt=True)
|
14 |
model = SegformerForSemanticSegmentation.from_pretrained(
|
15 |
+
"nielsr/segformer-b0-finetuned-segments-sidewalk",
|
16 |
+
from_pt=True)
|
17 |
|
18 |
def ade_palette():
|
19 |
"""ADE20K palette that maps each class to RGB values."""
|