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