mirror of
https://github.com/immich-app/immich.git
synced 2025-11-25 18:10:48 +09:00
chore: Lower default duplicate detection distance (#10703)
This commit is contained in:
@@ -258,7 +258,7 @@ export const defaults = Object.freeze<SystemConfig>({
|
|||||||
},
|
},
|
||||||
duplicateDetection: {
|
duplicateDetection: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
maxDistance: 0.0155,
|
maxDistance: 0.01,
|
||||||
},
|
},
|
||||||
facialRecognition: {
|
facialRecognition: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
@@ -214,7 +214,7 @@ describe(SearchService.name, () => {
|
|||||||
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
||||||
assetId: assetStub.hasEmbedding.id,
|
assetId: assetStub.hasEmbedding.id,
|
||||||
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
||||||
maxDistance: 0.0155,
|
maxDistance: 0.01,
|
||||||
type: assetStub.hasEmbedding.type,
|
type: assetStub.hasEmbedding.type,
|
||||||
userIds: [assetStub.hasEmbedding.ownerId],
|
userIds: [assetStub.hasEmbedding.ownerId],
|
||||||
});
|
});
|
||||||
@@ -240,7 +240,7 @@ describe(SearchService.name, () => {
|
|||||||
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
expect(searchMock.searchDuplicates).toHaveBeenCalledWith({
|
||||||
assetId: assetStub.hasEmbedding.id,
|
assetId: assetStub.hasEmbedding.id,
|
||||||
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
embedding: assetStub.hasEmbedding.smartSearch!.embedding,
|
||||||
maxDistance: 0.0155,
|
maxDistance: 0.01,
|
||||||
type: assetStub.hasEmbedding.type,
|
type: assetStub.hasEmbedding.type,
|
||||||
userIds: [assetStub.hasEmbedding.ownerId],
|
userIds: [assetStub.hasEmbedding.ownerId],
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
|
|||||||
},
|
},
|
||||||
duplicateDetection: {
|
duplicateDetection: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
maxDistance: 0.0155,
|
maxDistance: 0.01,
|
||||||
},
|
},
|
||||||
facialRecognition: {
|
facialRecognition: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user