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

Adding ability to set image_embeddings for predictor #117

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

michaelthoreau
Copy link

Sometimes it's really handy to be able to compute the embeddings once and decode multiple times without preserving memory.

Example:

  1. web endpoint computes embeddings once, taking around 15s on cpu, embeddings are saved to file
  2. this and other web endpoints can now create masks in < 1s by loading previously generated embeddings

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.

2 participants