Spaces:
Sleeping
Sleeping
joshangngoching
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ if uploaded_file is not None:
|
|
35 |
segmentation_results = semantic_segmentation(image)
|
36 |
st.json(segmentation_results)
|
37 |
|
38 |
-
image_with_masks = draw_masks_fromDict(
|
39 |
|
40 |
image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
|
41 |
st.image(image_with_masks_pil, caption='Image with Masks.', use_column_width=True)
|
|
|
35 |
segmentation_results = semantic_segmentation(image)
|
36 |
st.json(segmentation_results)
|
37 |
|
38 |
+
image_with_masks = draw_masks_fromDict(np.array(image), segmentation_results)
|
39 |
|
40 |
image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
|
41 |
st.image(image_with_masks_pil, caption='Image with Masks.', use_column_width=True)
|