Copy of YOLOv5 repository wrapped as an installable pip package.
Inspired from https://github.com/fcakyon/yolov5-pip.
Build wheel file:
python setup.py bdist_wheel
Integrating yolov5
repository as an installable package brings import issues.
This section covers parts of code that were modified.
Insert yolov5.
prefix when importing modules models
and utils
.
For example:
from yolov5.models.common import DetectMultiBackend
Directory yolov5.utils.loggers
contains custom module wandb
which has the same name as an installable pip package wandb
.
To prevent import errors the custom module yolov5.utils.loggers.wandb
was renamed to yolov5.utils.loggers.wandb_
.
Ray Chamidullin - chamidullinr@gmail.com - Github account