1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View file

@ -9119,7 +9119,7 @@
"maxDistance": { "maxDistance": {
"format": "double", "format": "double",
"maximum": 2, "maximum": 2,
"minimum": 0, "minimum": 0.1,
"type": "number" "type": "number"
}, },
"minFaces": { "minFaces": {
@ -9129,7 +9129,7 @@
"minScore": { "minScore": {
"format": "double", "format": "double",
"maximum": 1, "maximum": 1,
"minimum": 0, "minimum": 0.1,
"type": "number" "type": "number"
}, },
"modelName": { "modelName": {

View file

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

View file

@ -145,7 +145,7 @@
desc={$t('admin.machine_learning_min_detection_score_description')} desc={$t('admin.machine_learning_min_detection_score_description')}
bind:value={config.machineLearning.facialRecognition.minScore} bind:value={config.machineLearning.facialRecognition.minScore}
step="0.1" step="0.1"
min={0} min={0.1}
max={1} max={1}
disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled}
isEdited={config.machineLearning.facialRecognition.minScore !== isEdited={config.machineLearning.facialRecognition.minScore !==
@ -158,7 +158,7 @@
desc={$t('admin.machine_learning_max_recognition_distance_description')} desc={$t('admin.machine_learning_max_recognition_distance_description')}
bind:value={config.machineLearning.facialRecognition.maxDistance} bind:value={config.machineLearning.facialRecognition.maxDistance}
step="0.1" step="0.1"
min={0} min={0.1}
max={2} max={2}
disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled} disabled={disabled || !config.machineLearning.enabled || !config.machineLearning.facialRecognition.enabled}
isEdited={config.machineLearning.facialRecognition.maxDistance !== isEdited={config.machineLearning.facialRecognition.maxDistance !==