joshangngoching commited on
Commit
b013dca
1 Parent(s): 979199c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-b1-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')
 
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')