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

Multi CPU on macOS is broken #8623

Closed
2 tasks done
crsegerie opened this issue Jul 18, 2022 · 1 comment · Fixed by #8624
Closed
2 tasks done

Multi CPU on macOS is broken #8623

crsegerie opened this issue Jul 18, 2022 · 1 comment · Fixed by #8624
Labels
bug Something isn't working

Comments

@crsegerie
Copy link

Search before asking

  • I have searched the YOLOv5 issues and found no similar bug report.

YOLOv5 Component

No response

Bug

To solve the bug, we just need to set the environment variable :

from sys import platform
if platform == "darwin":
    os.environ['OMP_NUM_THREADS'] = "1" 

Environment

MacOS

Minimal Reproducible Example

No response

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@crsegerie crsegerie added the bug Something isn't working label Jul 18, 2022
glenn-jocher added a commit that referenced this issue Jul 18, 2022
glenn-jocher added a commit that referenced this issue Jul 18, 2022
@glenn-jocher
Copy link
Member

@crsegerie good news 😃! Your original issue may now be fixed ✅ in PR #8624. To receive this update:

  • Gitgit pull from within your yolov5/ directory or git clone https://github.com/ultralytics/yolov5 again
  • PyTorch Hub – Force-reload model = torch.hub.load('ultralytics/yolov5', 'yolov5s', force_reload=True)
  • Notebooks – View updated notebooks Open In Colab Open In Kaggle
  • Dockersudo docker pull ultralytics/yolov5:latest to update your image Docker Pulls

Thank you for spotting this issue and informing us of the problem. Please let us know if this update resolves the issue for you, and feel free to inform us of any other issues you discover or feature requests that come to mind. Happy trainings with YOLOv5 🚀!

ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this issue Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants