feat: seg any thing 新增box模式
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped

This commit is contained in:
zcr
2026-01-13 12:32:18 +08:00
parent 0ac5a4e0a8
commit f7294f5966
2 changed files with 20 additions and 5 deletions

View File

@@ -1,10 +1,14 @@
from pydantic import BaseModel
from typing import List, Optional
from pydantic import BaseModel, Field
class SAMRequestModel(BaseModel):
image_path: str
points: list[list[float]]
labels: list[int]
image_path: str = Field(..., description="图片路径,必填字段")
type: str = Field(..., description="推理类型,必填字段")
points: Optional[List[List[float]]] = None
labels: Optional[List[int]] = None
box: Optional[List[int]] = None
class DesignModel(BaseModel):