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

Speed up generate_embeddings function #19

Open
cxgoogle opened this issue Aug 3, 2023 · 0 comments
Open

Speed up generate_embeddings function #19

cxgoogle opened this issue Aug 3, 2023 · 0 comments

Comments

@cxgoogle
Copy link
Collaborator

cxgoogle commented Aug 3, 2023

Right now the function just iterates over a list of files one at a time and:

  1. Converts the image to a tfrecord
  2. Calls the CXR foundation API
  3. Writes the output to disk

This is highly parallelizable and a simple call to multiprocessing may speed things up a lot.

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

1 participant