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

Warning: Leaking Caffe2 thread-pool after fork with DataLoader num_workers>0 and pin_memory=True #3695

Closed
glenn-jocher opened this issue Jun 19, 2021 · 2 comments
Labels
bug Something isn't working Stale

Comments

@glenn-jocher
Copy link
Member

The 'Leaking Caffe2 thread-pool' warning is now appearing in the YOLOv5 (https://github.com/ultralytics/yolov5) Docker Image with PyTorch 1.9. To reproduce:

t=ultralytics/yolov5:latest && sudo docker pull $t && sudo docker run -it --ipc=host --gpus all $t
python train.py --epochs 3

Screenshot 2021-06-19 at 14 44 58

This is unrelated to YOLOv5 and the responsibility of the PyTorch devs. I've raised an issue directly there in pytorch/pytorch#57273

@NanoCode012

@glenn-jocher glenn-jocher added the bug Something isn't working label Jun 19, 2021
@LundinMachine
Copy link

Hmmm, in the meantime -- pardon possibly dumb question -- what about training without threading?

@github-actions
Copy link
Contributor

github-actions bot commented Jul 23, 2021

👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs.

Access additional YOLOv5 🚀 resources:

Access additional Ultralytics ⚡ resources:

Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed!

Thank you for your contributions to YOLOv5 🚀 and Vision AI ⭐!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

2 participants