mirror of
https://github.com/immich-app/immich.git
synced 2025-01-16 00:36:47 +01:00
fix(server): include archived images in face detection (#8892)
This commit is contained in:
parent
a4f805e99b
commit
8573c84605
1 changed files with 2 additions and 2 deletions
|
@ -292,7 +292,7 @@ export class PersonService {
|
||||||
|
|
||||||
const assetPagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (pagination) => {
|
const assetPagination = usePagination(JOBS_ASSET_PAGINATION_SIZE, (pagination) => {
|
||||||
return force
|
return force
|
||||||
? this.assetRepository.getAll(pagination, { orderDirection: 'DESC', withFaces: true })
|
? this.assetRepository.getAll(pagination, { orderDirection: 'DESC', withFaces: true, withArchived: true })
|
||||||
: this.assetRepository.getWithout(pagination, WithoutProperty.FACES);
|
: this.assetRepository.getWithout(pagination, WithoutProperty.FACES);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -424,7 +424,7 @@ export class PersonService {
|
||||||
|
|
||||||
this.logger.debug(`Face ${id} has ${matches.length} matches`);
|
this.logger.debug(`Face ${id} has ${matches.length} matches`);
|
||||||
|
|
||||||
const isCore = matches.length >= machineLearning.facialRecognition.minFaces;
|
const isCore = matches.length >= machineLearning.facialRecognition.minFaces && !face.asset.isArchived;
|
||||||
if (!isCore && !deferred) {
|
if (!isCore && !deferred) {
|
||||||
this.logger.debug(`Deferring non-core face ${id} for later processing`);
|
this.logger.debug(`Deferring non-core face ${id} for later processing`);
|
||||||
await this.jobRepository.queue({ name: JobName.FACIAL_RECOGNITION, data: { id, deferred: true } });
|
await this.jobRepository.queue({ name: JobName.FACIAL_RECOGNITION, data: { id, deferred: true } });
|
||||||
|
|
Loading…
Reference in a new issue