-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from lacmus-foundation/inference_v2
upd web app
- Loading branch information
Showing
9 changed files
with
218 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
from pydantic import BaseModel | ||
from fastapi_utils.enums import StrEnum | ||
from core.config import get_config | ||
from typing import List | ||
from enum import auto | ||
|
||
class Pong(BaseModel): | ||
pong: str = "Lacmus web API, version X.Y.Z" | ||
|
||
class Object(BaseModel): | ||
class Prediction(BaseModel): | ||
xmin: int | ||
xmax: int | ||
ymin: int | ||
xmax: int | ||
ymax: int | ||
label: str | ||
score: float | ||
label: str = 'Pedestrian' | ||
|
||
class Result(BaseModel): | ||
objects: List[Object] = None | ||
objects: List[Prediction] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.