Spaces:
Running
Running
AAAAAAyq
commited on
Commit
·
a5288e6
1
Parent(s):
901ea42
Fix the retina_mask bug
Browse files
app.py
CHANGED
|
@@ -19,9 +19,7 @@ news = """ # 📖 News
|
|
| 19 |
|
| 20 |
🔥 2023/06/26: Support the points mode. (Better and faster interaction will come soon!)
|
| 21 |
|
| 22 |
-
"""
|
| 23 |
-
|
| 24 |
-
|
| 25 |
|
| 26 |
description_e = """This is a demo on Github project 🏃 [Fast Segment Anything Model](https://github.com/CASIA-IVA-Lab/FastSAM).
|
| 27 |
|
|
@@ -70,8 +68,8 @@ def segment_everything(
|
|
| 70 |
conf_threshold=0.25,
|
| 71 |
better_quality=False,
|
| 72 |
withContours=True,
|
| 73 |
-
mask_random_color=True,
|
| 74 |
use_retina=True,
|
|
|
|
| 75 |
):
|
| 76 |
input_size = int(input_size) # 确保 imgsz 是整数
|
| 77 |
|
|
|
|
| 19 |
|
| 20 |
🔥 2023/06/26: Support the points mode. (Better and faster interaction will come soon!)
|
| 21 |
|
| 22 |
+
"""
|
|
|
|
|
|
|
| 23 |
|
| 24 |
description_e = """This is a demo on Github project 🏃 [Fast Segment Anything Model](https://github.com/CASIA-IVA-Lab/FastSAM).
|
| 25 |
|
|
|
|
| 68 |
conf_threshold=0.25,
|
| 69 |
better_quality=False,
|
| 70 |
withContours=True,
|
|
|
|
| 71 |
use_retina=True,
|
| 72 |
+
mask_random_color=True,
|
| 73 |
):
|
| 74 |
input_size = int(input_size) # 确保 imgsz 是整数
|
| 75 |
|