Gorilla-Lab-SCUT / SRDC-CVPR2020

Code release for Unsupervised Domain Adaptation via Structurally Regularized Deep Clustering (CVPR2020-Oral).
MIT License
80 stars 16 forks source link

CUDA out of memory for large dataset despite small batch size #11

Open Spandan-Madan opened 2 years ago

Spandan-Madan commented 2 years ago

I am trying to run the model on a custom dataset, which is significantly larger than the datasets used in this repo.

On line 520 of trainer.py while calculating k_means, a large enough dataset creates problems as it tries to compute the k_means for the whole dataset simultaneously which leads to CUDA out of memory issues.

Any leads on how this can be improved?