ModuleNotFoundError: No module named 'tools.eval'
Unable to train with custom data. Have 10 images on a singe gpu traininng.
im using this command. python3 tools/train.py --batch 2 --conf configs/yolov6s_finetune.py --data data/dataset.yaml --device 0
Im getting ModuleNotFoundError: No module named 'tools.eval'
Thanks for your attention! You can try adding the root directory of the project into the PYTHONPATH, like export PYTHONPATH=$PYTHONPATH:/xxx/YOLOv6
你好,我遇到了相同的问题,通过 export PYTHONPATH=$PYTHONPATH:/xxx/YOLOv6 导入工程路径后仍然报相同的错误。
我的问题是module 'tools.eval' has no attribute 'run'
Add __init__.py to the tools dir:
touch tools/__init__.py