feat: 更新分割模型参数 ; fix:

This commit is contained in:
zcr
2026-03-27 14:56:32 +08:00
parent 79eb3fb859
commit e0d519bfb3
2 changed files with 8 additions and 5 deletions

View File

@@ -395,7 +395,8 @@ async def seg_anything(request_data: SAMRequestModel):
通过传入图片路径和点击的点坐标,返回分割后的掩码数据。
### 参数说明:
- **user_id**:用户id 用于存储分割图
- **bucket**: minio bucket name
- **object_name**: minio object name
- **image_path**: 图片在服务器或云端的相对路径。
- **type**: 推理类型
- **box**: 框选矩形点位信息
@@ -408,8 +409,8 @@ async def seg_anything(request_data: SAMRequestModel):
```json
point
{
"user_id": 1,
"image_path": "aida-users/89/sketch/4e8fe37d-7068-400a-ac94-c01647fa5f6f.png",
"bucket": "test",
"object_name": "7068-400a-ac94-c01647fa5f6f.png",
"type":"point",
"points": [[310, 403], [493, 375], [261, 266], [404, 484]],
"labels": [1, 1, 0, 1]
@@ -417,7 +418,8 @@ async def seg_anything(request_data: SAMRequestModel):
box
{
"user_id": 1,
"bucket": "test",
"object_name": "7068-400a-ac94-c01647fa5f6f.png",
"image_path": "aida-users/89/sketch/4e8fe37d-7068-400a-ac94-c01647fa5f6f.png",
"type":"box",
"box": [350, 286, 544, 520]