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

Saving Raw embeddings + feature maps. #291

Closed
brunosan opened this issue Jul 2, 2024 · 1 comment
Closed

Saving Raw embeddings + feature maps. #291

brunosan opened this issue Jul 2, 2024 · 1 comment
Assignees

Comments

@brunosan
Copy link
Member

brunosan commented Jul 2, 2024

Many finetunes do use a frozen encoder, and take feature maps at different "heights" plus the enconder patch embeddings. These are the same regardless of the application.

We currently have the option to save the average embeddings (or all patch embeddings).

I think it would make sense to have an option to save feature maps at all heights alongside patch embeddings.

The idea being the same as with mean embeddings. If we have a large set of files that are used for several downstream applications, it seems to make sense to save both time and space with creating and saving these.

Even if these are all feture maps and all patch embeddings, they are still an extremely small % of the size of the input images.

Does this make sense?
Can we mae an inference option to save all these?

@brunosan
Copy link
Member Author

offline @yellowcap told me that this would mean several times the size of the input, which means it´s more efficient to re-create them when needed with the encoder.

Deferring for now.

@brunosan brunosan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants