Reduce dependencies for inferencing only #219
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
🚀 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
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)
The text was updated successfully, but these errors were encountered: