Skip to content

Commit

Permalink
chore: Lower default duplicate detection distance (immich-app#10703)
Browse files Browse the repository at this point in the history
  • Loading branch information
bo0tzz authored Jun 30, 2024
1 parent 8b6d27f commit e54c183
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export const defaults = Object.freeze<SystemConfig>({
},
duplicateDetection: {
enabled: true,
maxDistance: 0.0155,
maxDistance: 0.01,
},
facialRecognition: {
enabled: true,
Expand Down
4 changes: 2 additions & 2 deletions server/src/services/duplicate.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
});
Expand All @@ -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],
});
Expand Down
2 changes: 1 addition & 1 deletion server/src/services/system-config.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
},
duplicateDetection: {
enabled: true,
maxDistance: 0.0155,
maxDistance: 0.01,
},
facialRecognition: {
enabled: true,
Expand Down

0 comments on commit e54c183

Please sign in to comment.