-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
COCO Mask API is leaking memory when used with Multithreading #202
Comments
Any news? I am running into that issue in a multi-threaded PyTorch data loader. |
Interesting, I originally discovered the issue by using PyTorch's multi-process dataloader. this was just a minimal example to reproduce and verify that it wasn't PyTorch leaking memory |
It seems that loading that it is leaking even when I run it in single threaded mode. My code is:
and I run it in a loop like: and it runs out of memory around 4 iterations in (each iteration is 5000 images). Anyone have a solution to this? |
for me, COCO API for object detection also leaks, and it takes too much memory with the pytorch multiprocess dataloader. i am currently trying to cut the "instances.json" into multiple files to see if that helps https://github.com/etienne87/torch_object_rnn/blob/master/datasets/coco_wrapper.py. I basically only load the useful annotation when needed, instead of loading the whole json of training in ram. |
Possible fix? #637 |
Minimal example to reproduce
The text was updated successfully, but these errors were encountered: