Update app.py
Browse files
app.py
CHANGED
@@ -17,23 +17,23 @@ model = TFSegformerForSemanticSegmentation.from_pretrained(
|
|
17 |
def ade_palette():
|
18 |
"""ADE20K palette that maps each class to RGB values."""
|
19 |
return [
|
20 |
-
[
|
21 |
-
[
|
22 |
-
[
|
23 |
-
[
|
24 |
-
[
|
25 |
-
[
|
26 |
-
[
|
27 |
-
[
|
28 |
-
[
|
29 |
-
[255,
|
30 |
-
[
|
31 |
-
[
|
32 |
-
[
|
33 |
-
[
|
34 |
-
[
|
35 |
-
[
|
36 |
-
[
|
37 |
]
|
38 |
|
39 |
labels_list = []
|
|
|
17 |
def ade_palette():
|
18 |
"""ADE20K palette that maps each class to RGB values."""
|
19 |
return [
|
20 |
+
[255, 0, 0],
|
21 |
+
[255, 0, 0],
|
22 |
+
[255, 0, 0],
|
23 |
+
[255, 0, 0],
|
24 |
+
[255, 0, 0],
|
25 |
+
[255, 0, 0],
|
26 |
+
[255, 0, 0],
|
27 |
+
[255, 0, 0],
|
28 |
+
[255, 0, 0],
|
29 |
+
[255, 0, 0],
|
30 |
+
[255, 0, 0],
|
31 |
+
[255, 0, 0],
|
32 |
+
[255, 0, 0],
|
33 |
+
[255, 0, 0],
|
34 |
+
[255, 0, 0],
|
35 |
+
[255, 0, 0],
|
36 |
+
[255, 0, 0]
|
37 |
]
|
38 |
|
39 |
labels_list = []
|