Spaces:
Runtime error
Runtime error
Commit ·
28f8a0e
1
Parent(s): 1129909
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,6 +39,12 @@ def ade_palette():
|
|
| 39 |
[153, 0, 76]
|
| 40 |
]
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
colormap = np.asarray(ade_palette())
|
| 43 |
|
| 44 |
# Label to color image mapping
|
|
|
|
| 39 |
[153, 0, 76]
|
| 40 |
]
|
| 41 |
|
| 42 |
+
labels_list = []
|
| 43 |
+
|
| 44 |
+
with open(r'labels.txt', 'r') as fp:
|
| 45 |
+
for line in fp:
|
| 46 |
+
labels_list.append(line[:-1])
|
| 47 |
+
|
| 48 |
colormap = np.asarray(ade_palette())
|
| 49 |
|
| 50 |
# Label to color image mapping
|