dhkim2810 commited on
Commit
d1d13c5
β€’
1 Parent(s): 970a116

Update app

Browse files
Files changed (1) hide show
  1. app.py +6 -35
app.py CHANGED
@@ -25,46 +25,17 @@ predictor = SamPredictor(mobile_sam)
25
  # Description
26
  title = "<center><strong><font size='8'>Faster Segment Anything(MobileSAM)<font></strong></center>"
27
 
28
- description_e = """This is a demo on Github project [Faster Segment Anything(MobileSAM) Model](https://github.com/ChaoningZhang/MobileSAM). Welcome to give a star ⭐️ to it.
29
-
30
- 🎯 Upload an Image, segment it with Faster Segment Anything (Everything mode). The other modes will come soon.
31
-
32
- βŒ›οΈ It takes about 5~ seconds to generate segment results. The concurrency_count of queue is 1, please wait for a moment when it is crowded.
33
-
34
- πŸš€ To get faster results, you can use a smaller input size and leave high_visual_quality unchecked.
35
-
36
- πŸ“£ You can also obtain the segmentation results of any Image through this Colab: [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/1k6azd5wdOOYkFwi61uXoIHfP-qBzuoOu/view?usp=sharing)
37
-
38
- 🏠 Check out our [Model Card πŸƒ](https://huggingface.co/dhkim2810/MobileSAM)
39
 
40
- 😚 Most of our demo code is from [FastSAM Demo](https://huggingface.co/spaces/An-619/FastSAM). Huge thanks for AN-619.
41
-
42
- """
43
 
44
- description_p = """ # 🎯 Instructions for points mode
45
- This is a demo on Github project [Faster Segment Anything(MobileSAM) Model](https://github.com/ChaoningZhang/MobileSAM). Welcome to give a star ⭐️ to it.
46
-
47
- 🎯 Upload an Image, segment it with Faster Segment Anything (Everything mode). The other modes will come soon.
48
 
49
- βŒ›οΈ It takes about 5~ seconds to generate segment results. The concurrency_count of queue is 1, please wait for a moment when it is crowded.
50
-
51
- πŸš€ To get faster results, you can use a smaller input size and leave high_visual_quality unchecked.
52
-
53
- πŸ“£ You can also obtain the segmentation results of any Image through this Colab: [![Open in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://drive.google.com/file/d/1jibN6HTQcC4C2okoaKLRzHIo_pS0Eeom/view?usp=sharing)
54
-
55
- 🏠 Check out our [Model Card πŸƒ](https://huggingface.co/dhkim2810/MobileSAM)
56
-
57
 
 
58
 
59
- 1. Upload an image or choose an example.
60
-
61
- 2. Choose the point label ('Add mask' means a positive point. 'Remove' Area means a negative point that is not segmented).
62
-
63
- 3. Add points one by one on the image.
64
-
65
- 4. Click the 'Segment with points prompt' button to get the segmentation results.
66
-
67
- **5. If you get Error, click the 'Clear points' button and try again may help.**
68
 
69
  """
70
 
 
25
  # Description
26
  title = "<center><strong><font size='8'>Faster Segment Anything(MobileSAM)<font></strong></center>"
27
 
28
+ description_e = """This is a demo of [Faster Segment Anything(MobileSAM) Model](https://github.com/ChaoningZhang/MobileSAM).
 
 
 
 
 
 
 
 
 
 
29
 
30
+ We will provide box mode soon.
 
 
31
 
32
+ Enjoy!
 
 
 
33
 
34
+ """
 
 
 
 
 
 
 
35
 
36
+ description_p = """ # Instructions for points mode
37
 
38
+ You can use your own image or sample images.
 
 
 
 
 
 
 
 
39
 
40
  """
41