Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,10 +31,11 @@ def visualize_model_output(prediction):
|
|
31 |
print(output.shape,'shape of output')
|
32 |
|
33 |
for unq_class in unique_classes:
|
34 |
-
|
35 |
-
|
36 |
-
output[:,:,
|
37 |
-
output[:,:,
|
|
|
38 |
|
39 |
return output
|
40 |
|
|
|
31 |
print(output.shape,'shape of output')
|
32 |
|
33 |
for unq_class in unique_classes:
|
34 |
+
print(unq_class,'unq_class')
|
35 |
+
rgb_class_unique = rgb_colors[str(int(unq_class))]
|
36 |
+
output[:,:,0][prediction[:,:,0]==unq_class] = rgb_class_unique[0]
|
37 |
+
output[:,:,1][prediction[:,:,0]==unq_class] = rgb_class_unique[1]
|
38 |
+
output[:,:,2][prediction[:,:,0]==unq_class] = rgb_class_unique[2]
|
39 |
|
40 |
return output
|
41 |
|