Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): only queue ml / transcoding jobs after thumbnail generation on upload #7516

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

mertalev
Copy link
Contributor

Description

Re-running thumbnail generation has the side effect of queueing all ML tasks as well as transcoding. This is unnecessary and can be detrimental in the case of ML due to the indices being degraded. There's currently no way to just re-generate thumbnails (such as with a different quality setting, or after a certain PR).

This PR addresses this by selectively queueing ML and transcoding only on upload.

Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1017a1e
Status: ✅  Deploy successful!
Preview URL: https://c7564521.immich.pages.dev
Branch Preview URL: https://fix-jpeg-queuing-ondone.immich.pages.dev

View logs

@mertalev mertalev merged commit dc7a329 into main Feb 29, 2024
25 of 26 checks passed
@mertalev mertalev deleted the fix/jpeg-queuing-ondone branch February 29, 2024 04:23
@waclaw66
Copy link
Contributor

I've been using that functionality for rescan faces after detection score change. Now there is no chance to rerun face detection selectively. It would be nice to add a separate function for face re-detection same as "Refresh thumbnails".

@mertalev
Copy link
Contributor Author

Face detection skips any assets that already have faces, so I don't think there's a difference between running thumbnail generation and running a "without" job for face detection.

@waclaw66
Copy link
Contributor

Face detection skips any assets that already have faces, so I don't think there's a difference between running thumbnail generation and running a "without" job for face detection.

There is a discussion about it...
#2472 (comment)

@mertalev
Copy link
Contributor Author

Relevant XKCD haha

But I agree it'd be nice to have a face detection variant of Refresh Thumbnails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants