Spaces:
Sleeping
Sleeping
Commit
·
8103efe
1
Parent(s):
6d3ae22
fix: typo in method
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def segment_image(image):
|
|
58 |
prediction_resized = numpy.array(prediction_resized)
|
59 |
|
60 |
# Apply a colormap for visualization (using the public API)
|
61 |
-
colormap = cm.
|
62 |
# Normalize the mask and apply the colormap (result is in float [0,1])
|
63 |
colored_mask = colormap(prediction_resized / numpy.max(prediction_resized))[:, :, :3]
|
64 |
|
|
|
58 |
prediction_resized = numpy.array(prediction_resized)
|
59 |
|
60 |
# Apply a colormap for visualization (using the public API)
|
61 |
+
colormap = cm._colormaps['jet']
|
62 |
# Normalize the mask and apply the colormap (result is in float [0,1])
|
63 |
colored_mask = colormap(prediction_resized / numpy.max(prediction_resized))[:, :, :3]
|
64 |
|