Spaces:
Runtime error
Runtime error
Update app
Browse files
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
|
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 |
-
|
41 |
-
|
42 |
-
"""
|
43 |
|
44 |
-
|
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 |
-
|
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 |
-
|
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 |
|