Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,9 @@ import numpy as np
|
|
9 |
import tensorflow as tf
|
10 |
|
11 |
feature_extractor = SegformerFeatureExtractor.from_pretrained(
|
12 |
-
"nvidia/segformer-b0-finetuned-ade-512-512"
|
13 |
model = SegformerForSemanticSegmentation.from_pretrained(
|
14 |
-
"segments-tobias/segformer-b0-finetuned-segments-sidewalk"
|
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 |
+
"nvidia/segformer-b0-finetuned-ade-512-512")
|
13 |
model = SegformerForSemanticSegmentation.from_pretrained(
|
14 |
+
"segments-tobias/segformer-b0-finetuned-segments-sidewalk")
|
15 |
|
16 |
def ade_palette():
|
17 |
"""ADE20K palette that maps each class to RGB values."""
|