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

thop/profile.py:12: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. if LooseVersion(torch.__version__) < LooseVersion("1.0.0"): #200

Open
glenn-jocher opened this issue Mar 10, 2023 · 2 comments

Comments

@glenn-jocher
Copy link

I'm seeing a DeprecationWarning when running YOLOv8 tests. This looks pretty simple, I think we just need to update thop/profile.py:12 as mentioned to us pkg_resources as follows:

import pkg_resources as pkg

pkg.parse_version(torch.__version__)

I'll try to submit a PR.

@glenn-jocher
Copy link
Author

glenn-jocher commented Mar 10, 2023

See Ultralytics CI Tests for examples of the deprecation warning:

https://github.com/ultralytics/ultralytics/actions/runs/4380005063/jobs/7666578652
Screenshot 2023-03-10 at 19 21 46

@GTziolas
Copy link

@glenn-jocher I'm still seeing this DeprecationWarning. Would it be wise to reopen this PR?

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

No branches or pull requests

2 participants