Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ if uploaded_file is not None:
|
|
64 |
with col1:
|
65 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|
66 |
|
67 |
-
semantic_segmentation = pipeline("image-segmentation", f"nvidia/segformer-
|
68 |
segmentation_results = semantic_segmentation(image)
|
69 |
image_with_masks = draw_masks_fromDict(np.array(image)[:, :, :3], segmentation_results)
|
70 |
image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
|
|
|
64 |
with col1:
|
65 |
st.image(image, caption='Uploaded Image.', use_column_width=True)
|
66 |
|
67 |
+
semantic_segmentation = pipeline("image-segmentation", f"nvidia/segformer-b5-finetuned-cityscapes-1024-1024")
|
68 |
segmentation_results = semantic_segmentation(image)
|
69 |
image_with_masks = draw_masks_fromDict(np.array(image)[:, :, :3], segmentation_results)
|
70 |
image_with_masks_pil = Image.fromarray(image_with_masks, 'RGB')
|