mirror of
https://github.com/azaion/detections.git
synced 2026-04-22 11:06:32 +00:00
Refactor autopilot workflows and documentation: Update .gitignore to include binary and media file types, enhance agent command references in documentation, and modify annotation class for improved accessibility. Adjust inference processing to handle batch sizes and streamline test specifications for clarity and consistency across the system.
This commit is contained in:
@@ -109,9 +109,10 @@ class AIConfigDto(BaseModel):
|
||||
|
||||
def detection_to_dto(det) -> DetectionDto:
|
||||
import constants_inf
|
||||
ann = constants_inf.get_annotations_dict()
|
||||
label = ""
|
||||
if det.cls in constants_inf.annotations_dict:
|
||||
label = constants_inf.annotations_dict[det.cls].name
|
||||
if det.cls in ann:
|
||||
label = ann[det.cls].name
|
||||
return DetectionDto(
|
||||
centerX=det.x,
|
||||
centerY=det.y,
|
||||
|
||||
Reference in New Issue
Block a user