lkeab commited on
Commit
6e5b173
1 Parent(s): e324aa4

update link

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -19,14 +19,6 @@ from detectron2.config import get_cfg
19
  from detectron2.utils.visualizer import Visualizer
20
  from detectron2.data import MetadataCatalog
21
 
22
- '''
23
- url1 = 'https://cdn.pixabay.com/photo/2014/09/07/21/52/city-438393_1280.jpg'
24
- r = requests.get(url1, allow_redirects=True)
25
- open("city1.jpg", 'wb').write(r.content)
26
- url2 = 'https://cdn.pixabay.com/photo/2016/02/19/11/36/canal-1209808_1280.jpg'
27
- r = requests.get(url2, allow_redirects=True)
28
- open("city2.jpg", 'wb').write(r.content)
29
- '''
30
 
31
  model_name='./configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x_4gpu_transfiner.yaml'
32
 
@@ -58,7 +50,7 @@ def inference(image):
58
 
59
  title = "Mask Transfiner R50 model"
60
  description = "Demo for Mask Transfiner based on R50-FPN. To use it, simply upload your image, or click one of the examples to load them. It runs in the cpu environment provided by Hugging Face. Read more at the links below."
61
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2012.07177'>Mask Transfiner for High-Quality Instance Segmentation, CVPR 2022</a> | <a href='https://github.com/SysCV/transfiner'>Mask Transfiner Github</a></p>"
62
 
63
  gr.Interface(
64
  inference,
 
19
  from detectron2.utils.visualizer import Visualizer
20
  from detectron2.data import MetadataCatalog
21
 
 
 
 
 
 
 
 
 
22
 
23
  model_name='./configs/COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x_4gpu_transfiner.yaml'
24
 
 
50
 
51
  title = "Mask Transfiner R50 model"
52
  description = "Demo for Mask Transfiner based on R50-FPN. To use it, simply upload your image, or click one of the examples to load them. It runs in the cpu environment provided by Hugging Face. Read more at the links below."
53
+ article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2111.13673'>Mask Transfiner for High-Quality Instance Segmentation, CVPR 2022</a> | <a href='https://github.com/SysCV/transfiner'>Mask Transfiner Github</a></p>"
54
 
55
  gr.Interface(
56
  inference,