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

Fix the problem that Torch does not correspond to Torchvision version #152

Closed
wants to merge 1 commit into from
Closed

Conversation

Lornatang
Copy link
Contributor

@Lornatang Lornatang commented Jun 20, 2020

fix #148 errors

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Adjusting PyTorch and torchvision to specific versions for consistency.

πŸ“Š Key Changes

  • Changed PyTorch requirement from any version newer than 1.4 (>=1.4) to the specific version 1.4 (==1.4).
  • Pinned torchvision to an exact version 0.5.0 (==0.5.0) instead of the latest available version.

🎯 Purpose & Impact

  • Ensures compatibility and predictability by using specific versions of PyTorch and torchvision, reducing the likelihood of bugs or incompatibilities with new releases.
  • Users can expect a more stable environment with less risk of encountering issues due to changing dependencies.
  • May impact users who work with newer features of PyTorch and torchvision that are not available in the specified versions. πŸ”„

@glenn-jocher
Copy link
Member

@Lornatang we can't force torch 1.4 install, as colab for example comes with 1.5 and the docker containers come with 1.5 also etc. 1.5, and now 1.5.1 have many bug fixes and improvements over 1.4.

@Lornatang
Copy link
Contributor Author

Lornatang commented Jun 22, 2020

@glenn-jocher This error seems to have found a good solution. If you use conda to install torch+torchvision you will get an error. No error when using pip.

@Lornatang Lornatang closed this Jun 22, 2020
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.

torch 1.4 error - RuntimeError: Failed to register operator torchvision::_new_empty_tensor_op.
2 participants