YOLOv6
YOLOv6 copied to clipboard
help AttributeError: module 'tools.eval' has no attribute 'run'
Training completed in 0.053 hours.
Traceback (most recent call last):
File "tools/train.py", line 114, in
Try doing this prior to your command:
export PYTHONPATH=$PYTHONPATH:/docker_code/yolov6/YOLOv6-main/
Have you install YOLOX? try pip uninstall yolox
, because YOLOX built a library with the name tools.
You can open python terminal, run
from tools import run
If error occurs, see which package does not have run
, then pip uninstall the package. Currently, I know yolox and detectron2 will cause this problem.
Have you install YOLOX? try
pip uninstall yolox
, because YOLOX built a library with the name tools.
I meet the same problem, because I have build YOLOX. If you use anaconda to manage your environment, you can also built a new virtual environment for implementing yolov6 to solve this issue.