worlabel/ai/app/schemas/predict_request.py

11 lines
301 B
Python
Raw Normal View History

from pydantic import BaseModel
from typing import List, Optional
class PredictRequest(BaseModel):
projectId: int
image_path: str
version: Optional[str] = "latest"
conf_threshold: Optional[float] = 0.25
iou_threshold: Optional[float] = 0.45
classes: Optional[List[int]] = None