Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,6 +138,8 @@ def colorize_mask(mask: np.ndarray, num_colors: int = 512) -> np.ndarray:
|
|
| 138 |
|
| 139 |
# ===== 分割功能 =====
|
| 140 |
def segment_with_choice(use_box_choice, annot_value):
|
|
|
|
|
|
|
| 141 |
"""分割主函数 - 每个实例不同颜色+轮廓"""
|
| 142 |
if annot_value is None or len(annot_value) < 1:
|
| 143 |
print("❌ No annotation input")
|
|
|
|
| 138 |
|
| 139 |
# ===== 分割功能 =====
|
| 140 |
def segment_with_choice(use_box_choice, annot_value):
|
| 141 |
+
print(use_box_choice)
|
| 142 |
+
print(annot_value)
|
| 143 |
"""分割主函数 - 每个实例不同颜色+轮廓"""
|
| 144 |
if annot_value is None or len(annot_value) < 1:
|
| 145 |
print("❌ No annotation input")
|