1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-28 22:51:59 +00:00

chore: Lower default duplicate detection distance (#10703)

This commit is contained in:
bo0tzz 2024-06-30 17:36:02 +02:00 committed by GitHub
parent 8b6d27f1bc
commit e54c18367b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -258,7 +258,7 @@ export const defaults = Object.freeze<SystemConfig>({
},
duplicateDetection: {
enabled: true,
maxDistance: 0.0155,
maxDistance: 0.01,
},
facialRecognition: {
enabled: true,

View file

@ -214,7 +214,7 @@ describe(SearchService.name, () => {
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
assetId: assetStub.hasEmbedding.id,
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
maxDistance: 0.0155,
maxDistance: 0.01,
type: assetStub.hasEmbedding.type,
userIds: [assetStub.hasEmbedding.ownerId],
});
@ -240,7 +240,7 @@ describe(SearchService.name, () => {
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
assetId: assetStub.hasEmbedding.id,
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
maxDistance: 0.0155,
maxDistance: 0.01,
type: assetStub.hasEmbedding.type,
userIds: [assetStub.hasEmbedding.ownerId],
});

View file

@ -81,7 +81,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
},
duplicateDetection: {
enabled: true,
maxDistance: 0.0155,
maxDistance: 0.01,
},
facialRecognition: {
enabled: true,