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

Can't load train embedding for growing datasets lab #8

Open
yonikremer opened this issue Mar 2, 2023 · 1 comment
Open

Can't load train embedding for growing datasets lab #8

yonikremer opened this issue Mar 2, 2023 · 1 comment

Comments

@yonikremer
Copy link

yonikremer commented Mar 2, 2023

I am working on the growing datasets lab.
When I am trying to load to embedding for the train set, I am loading 32% of the data very fast (33 seconds) but gets stuck there every time.
Here is the slow part of the code (from OpenImagesDataset, _load_embeddings_df):

for filepath in wrapped_loader:
    df = pd.read_parquet(filepath)
    index_ls.append(df.index)
    values_ls.append(df['embedding'].tolist())

My RAM and CPU usage isn't too high.

Edit: I have noticed that my runtime restarts every time (probably because I used more than my 16GB of RAM)

@yonikremer
Copy link
Author

Seems like the problem is loading data/saved_embeddings/train/c6-whitened-256_4.parquet.gzip to a dataframe

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