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

Update Dockerfile-cpu to force python3.9 #7675

Merged
merged 18 commits into from
May 3, 2022
Merged

Update Dockerfile-cpu to force python3.9 #7675

merged 18 commits into from
May 3, 2022

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented May 3, 2022

Update Dockerfile and Dockerfile-cpu. Use python3.9 commands with this image.

alias python=python3.9

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Upgraded requirements and Docker improvements for better compatibility and performance.

πŸ“Š Key Changes

  • Lowered the minimum required version of scipy in requirements.txt to 1.4.1 for compatibility with Google Colab.
  • Refined the Dockerfiles by specifying the exact PyTorch versions to be installed and reducing clutter.
  • Improved the Docker CPU image by installing Python 3.9 instead of the default version and using python3.9 to install packages.
  • Cleaned up redundant package uninstallation (torch, torchvision, torchtext) in Dockerfiles.

🎯 Purpose & Impact

  • Ensuring that the required packages can be installed in Google Colab will help users quickly set up YOLOv5 in a widely used environment with free GPU access. πŸ“˜βœ…
  • Specifying exact versions of PyTorch in Dockerfiles can lead to more predictable builds and avoid potential incompatibilities. πŸ”§πŸ“ˆ
  • Upgrading to Python 3.9 in Docker CPU improves performance and supports more recent Python features, which might enhance the development experience. πŸš€πŸ’»
  • Simplifying Dockerfile steps by removing unnecessary uninstalls reduces build time and potential errors during the image creation process. πŸ› οΈπŸ§Ή

@glenn-jocher glenn-jocher self-assigned this May 3, 2022
@glenn-jocher glenn-jocher changed the title Docker Update Dockerfile and Dockerfile-cpu May 3, 2022
@glenn-jocher glenn-jocher changed the title Update Dockerfile and Dockerfile-cpu Update Dockerfile 22.04 and Dockerfile-cpu May 3, 2022
@glenn-jocher glenn-jocher changed the title Update Dockerfile 22.04 and Dockerfile-cpu Update Dockerfile-cpu to force python3.9 May 3, 2022
@glenn-jocher glenn-jocher merged commit c4862fc into master May 3, 2022
@glenn-jocher glenn-jocher deleted the docker branch May 3, 2022 03:53
tdhooghe pushed a commit to tdhooghe/yolov5 that referenced this pull request Jun 10, 2022
* Update

* Update

* Do not install torch

* Pillow>9.1

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile

* fix emoji

* reduce scipy

* add libpython3.9

* Update Dockerfile
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Update

* Update

* Do not install torch

* Pillow>9.1

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile

* fix emoji

* reduce scipy

* add libpython3.9

* Update Dockerfile
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 2022
* Update

* Update

* Do not install torch

* Pillow>9.1

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile-cpu

* Update Dockerfile

* fix emoji

* reduce scipy

* add libpython3.9

* Update Dockerfile
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

Successfully merging this pull request may close these issues.

None yet

1 participant