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

Reduce dependencies for inferencing only #219

Open
1 of 6 tasks
zhiqwang opened this issue Oct 28, 2021 · 0 comments
Open
1 of 6 tasks

Reduce dependencies for inferencing only #219

zhiqwang opened this issue Oct 28, 2021 · 0 comments
Labels
code quality Code format and unit tests dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed

Comments

@zhiqwang
Copy link
Owner

zhiqwang commented Oct 28, 2021

🚀 The feature

In version 0.5.x we have full support for YOLOv5, at the cost of introducing more dependencies. If someone just wants to use the models for inference, he/she doesn't need all additional features like:

However, those useful features are (partially) built-in to the model architecture. Therefore he/she needs to install additional libraries like

  • matplotlib
  • seaborn
  • pandas

even if he/she doesn't use them at all. Also downloading the additional font (Arial.ttf) can be a problem in restricted environments.

I think it would be nice to have an operable core model that runs with only a subset of required dependencies.

Motivation, pitch

I'd suggest to disentangle the core model (inference only) and the additional features (plotting, profiling, ...).

Alternatives

Leave it as it is and require all dependencies

Additional context

Originally posted by @maxstrobel in ultralytics/yolov5#4664 (comment)

@zhiqwang zhiqwang added code quality Code format and unit tests dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed enhancement New feature or request and removed enhancement New feature or request labels Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Code format and unit tests dependencies Pull requests that update a dependency file good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant