Repository navigation
Expose CLIP embeddings for asset crops via the public API #33764
msmolka
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have searched the existing feature requests, both open and closed, to make sure this is not a duplicate request.
The feature
Hi,
I've recently started using Immich and I like it so far, but I'm missing some features, especially related to categorizing/tagging my pets. I've looked at #7151, and there is no native support yet.
I've checked other tools like immich-pet-tagger, and those tools work around the missing feature by running a second copy of CLIP, or by calling /predict or reading smart_search directly, but they also store pets as people/faces, while I'd prefer to keep them separate, e.g. as tags.
Immich already has the model and hardware acceleration configured, so duplicating similar logic externally looks a bit over the top.
I think a small read-only public API would help with developing external tools without reinventing the wheel. Something like: the CLIP embedding for a region of my own picture that is already indexed in Immich, returned together with the model name and its revision. A region, because a dog in the corner of the frame gets lost in the whole-image embedding. The crop could be done server-side from the preview, behind normal API auth, similar to what #28463 proposes for search. Then the external tool could do its own calibration, e.g. train a small classifier on a few reference photos of each pet.
I’ve read reasoning in #21537 but this doesn't need any server-side threshold.
Would something like this be in scope?
Platform
All reactions