mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-26 01:51:40 +00:00
Support selecting Object Detection models (#1359)
This PR is for part 1 of #1354. It focuses on adding a model selection interface for models that exist in `photonvision_config/models/`. Upon completion we can ship more than 1 model and users could upload their own through `ssh` without deleting the shipped model. This PR also adds the abstractions need to support more DNN backends (say OpenCV, or RPI AI Kit) Up next is adding a CRUD interface for managing models through the UI.
This commit is contained in:
committed by
GitHub
parent
24fb6af5f4
commit
27cb69c094
@@ -289,6 +289,7 @@ export interface ObjectDetectionPipelineSettings extends PipelineSettings {
|
||||
confidence: number;
|
||||
nms: number;
|
||||
box_thresh: number;
|
||||
model: string;
|
||||
}
|
||||
export type ConfigurableObjectDetectionPipelineSettings = Partial<
|
||||
Omit<ObjectDetectionPipelineSettings, "pipelineType">
|
||||
@@ -304,7 +305,8 @@ export const DefaultObjectDetectionPipelineSettings: ObjectDetectionPipelineSett
|
||||
cameraExposureRaw: 6,
|
||||
confidence: 0.9,
|
||||
nms: 0.45,
|
||||
box_thresh: 0.25
|
||||
box_thresh: 0.25,
|
||||
model: ""
|
||||
};
|
||||
|
||||
export type ActivePipelineSettings =
|
||||
|
||||
@@ -7,7 +7,8 @@ export interface GeneralSettings {
|
||||
hardwareModel?: string;
|
||||
hardwarePlatform?: string;
|
||||
mrCalWorking: boolean;
|
||||
rknnSupported: boolean;
|
||||
availableModels: Record<string, string[]>;
|
||||
supportedBackends: string[];
|
||||
}
|
||||
|
||||
export interface MetricData {
|
||||
|
||||
Reference in New Issue
Block a user