Add detection operator profiles
This commit is contained in:
@@ -21,6 +21,11 @@ interface DetectionWorkflowOptions {
|
||||
loadQualityChecks: (projectId?: string | null) => Promise<QualityCheckRead[] | void>
|
||||
}
|
||||
|
||||
interface DetectionOperatorProfileSelection {
|
||||
modelAssetId: string
|
||||
confidenceThreshold: number
|
||||
}
|
||||
|
||||
export interface DetectionCalibrationRunRow {
|
||||
threshold: number
|
||||
status: 'queued' | 'running' | 'success' | 'failed'
|
||||
@@ -333,6 +338,12 @@ export function useDetectionWorkflow({
|
||||
}
|
||||
}
|
||||
|
||||
const applyDetectionOperatorProfile = (profile: DetectionOperatorProfileSelection) => {
|
||||
setSelectedDetectionModelId('yolo-configured')
|
||||
setSelectedModelAssetId(profile.modelAssetId)
|
||||
setDetectionConfidenceThreshold(profile.confidenceThreshold)
|
||||
}
|
||||
|
||||
const resetDetectionForProject = () => {
|
||||
setSelectedDetectionDatasetId('')
|
||||
setDetectionRuns([])
|
||||
@@ -383,6 +394,7 @@ export function useDetectionWorkflow({
|
||||
runDetection,
|
||||
runDetectionQa,
|
||||
runDetectionCalibration,
|
||||
applyDetectionOperatorProfile,
|
||||
resetDetectionForProject,
|
||||
setSelectedDetectionDatasetId,
|
||||
setSelectedDetectionModelId,
|
||||
|
||||
Reference in New Issue
Block a user