mangaruu commited on
Commit
39936ff
·
1 Parent(s): 2f8146d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -26,9 +26,13 @@ models = [
26
  "name": "Instance Segmentation",
27
  "config_file": "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml",
28
  },
 
 
 
 
29
  {
30
  "name": "Custom Model",
31
- "config_file": "COCO-InstanceSegmentation/mask_rcnn_X_101_32x8d_FPN_3x.yaml",
32
  "model_path": "https://huggingface.co/spaces/eyepop-ai/segmentation/blob/main/model_final.pth",
33
  },
34
  ]
@@ -80,9 +84,10 @@ def inference(image_url, image, min_score, model_name):
80
  title = "# Segmentation Model Demo"
81
  description = """
82
  This demo introduces an interactive playground for pretrained Detectron2 model.
83
- Currently, two models are supported that were trained on COCO dataset:
84
  * [Instance Segmentation](https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml): Identifies, outlines individual object instances.
85
  * [Panoptic Segmentation](https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml): Unifies instance and semantic segmentation.
 
86
  """
87
  footer = "Made by eyepop.ai with ❤️."
88
 
 
26
  "name": "Instance Segmentation",
27
  "config_file": "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml",
28
  },
29
+ {
30
+ "name": "Panoptic Segmentation",
31
+ "config_file": "COCO-Detection/faster_rcnn_R_50_FPN_3x.yaml",
32
+ },
33
  {
34
  "name": "Custom Model",
35
+ "config_file": "COCO-InstanceSegmentation/mask_rcnn_R_101_FPN_3x.yaml",
36
  "model_path": "https://huggingface.co/spaces/eyepop-ai/segmentation/blob/main/model_final.pth",
37
  },
38
  ]
 
84
  title = "# Segmentation Model Demo"
85
  description = """
86
  This demo introduces an interactive playground for pretrained Detectron2 model.
87
+ Currently, two models are supported that were trained on COCO and custom datasets:
88
  * [Instance Segmentation](https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml): Identifies, outlines individual object instances.
89
  * [Panoptic Segmentation](https://github.com/facebookresearch/detectron2/blob/main/configs/COCO-PanopticSegmentation/panoptic_fpn_R_50_1x.yaml): Unifies instance and semantic segmentation.
90
+ * [Custom Model](https://huggingface.co/spaces/eyepop-ai/segmentation/blob/main/model_final.pth): Identifies, outlines rounded objects in petri dishes.
91
  """
92
  footer = "Made by eyepop.ai with ❤️."
93