-
Notifications
You must be signed in to change notification settings - Fork 44
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
better maually cleanup gpu memory when loading motions #98
Comments
Found a strange thing. There is already cleanup codes in motion_lib_real.py line 77, but it is commented out.
change to this
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
often meets CUDA out of memory in the stage of evaluating the model (which periodically called after 1500 iterations of training).
In motion_lib_real.py line 199 we load the motions in memory and then transfer them into gpu tensors. Then given to class variables (e.g. self.gts). Perhaps tensors loaded previously in self.gts are not cleaned automatically.
So better manually clean the cache before we load.
the same in line 208
and line 214
Helps me train on single RTX 4090. But im not sure if this is the case. It is wierd that the memory is not cleaned up automatically after assigning new data on the old variables.
The text was updated successfully, but these errors were encountered: