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

memory leak in boxlist_iou? #31

Open
twmht opened this issue May 5, 2020 · 1 comment
Open

memory leak in boxlist_iou? #31

twmht opened this issue May 5, 2020 · 1 comment

Comments

@twmht
Copy link

twmht commented May 5, 2020

I found out that memory leak may happen in box_list_iou (https://github.com/zhangxiaosong18/FreeAnchor/blob/master/maskrcnn_benchmark/modeling/rpn/free_anchor_loss.py#L108)

when it processes large number of ground truth, of course the gpu memory grows up. but it never frees the memory it holds.

turning to cpu mode is a workaround but very slow.

@twmht
Copy link
Author

twmht commented May 5, 2020

I set batch size to 32, if i turn box_list_iou into cpu mode, gpu memory consumption is only 6GB for each of two gpus, but when turning box_list_iou into gpu mode, it would grow up and finally out of memory.

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