-
Notifications
You must be signed in to change notification settings - Fork 98
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
Question about CPU out of memory #27
Comments
z = F.fold(z, kernel_size=s, output_size=(H1, W1), stride=s) |
I did this as a workaround:
Practically I'm dividing the expensive concat operation into "multiple stages". It helped me out with the memory issue.
Because it was causing a huge memory leak (16-20 gb for the whole dataset) |
Thanks for your reply. It seems that firstly you index_select for every-layer feature and then concat. It helps. |
hi i met this problem in training phase. File "main.py", line 337, in |
Yeah,I think you're right! Have you tried it ? |
Nope, not yet, but it sounds promising. |
I think you can simply consider the reduced dataset of size You can then compute the covariance matrices as usual: And the score will be the regular Mahalanobis distance: Note: you still need to substract the mean vectors but I removed them for an easier reading. |
I made the following changes to the code:
|
np.array(list).shape[1] |
Hi, I run the experiments with my own dataset, which the number of training samples is about 1000 and the number of testing samples is about 1500. but in the process of embedding_concat (function F.fold),cpu out of memory. Any suggestions?
The text was updated successfully, but these errors were encountered: