fix: set min values for face detection to reasonable values (#12877)

fix: set min values for face detection to >0
This commit is contained in:
Daniel Dietzler
2024-09-24 04:03:59 +02:00
committed by GitHub
parent bcd416477b
commit ec32a9e610
4 changed files with 8 additions and 8 deletions

View File

@@ -27,14 +27,14 @@ export class DuplicateDetectionConfig extends TaskConfig {
export class FacialRecognitionConfig extends ModelConfig {
@IsNumber()
@Min(0)
@Min(0.1)
@Max(1)
@Type(() => Number)
@ApiProperty({ type: 'number', format: 'double' })
minScore!: number;
@IsNumber()
@Min(0)
@Min(0.1)
@Max(2)
@Type(() => Number)
@ApiProperty({ type: 'number', format: 'double' })