YOLOv6 icon indicating copy to clipboard operation
YOLOv6 copied to clipboard

ModuleNotFoundError: No module named 'tools.eval'

Open joel5638 opened this issue 3 years ago • 4 comments

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'

joel5638 avatar Jun 29 '22 07:06 joel5638

Thanks for your attention! You can try adding the root directory of the project into the PYTHONPATH, like export PYTHONPATH=$PYTHONPATH:/xxx/YOLOv6

Chilicyy avatar Jun 29 '22 07:06 Chilicyy

你好,我遇到了相同的问题,通过 export PYTHONPATH=$PYTHONPATH:/xxx/YOLOv6 导入工程路径后仍然报相同的错误。

caicai0352 avatar Jun 29 '22 10:06 caicai0352

我的问题是module 'tools.eval' has no attribute 'run'

guoguolord avatar Jun 30 '22 07:06 guoguolord

Add __init__.py to the tools dir:

touch tools/__init__.py

lucienwang1009 avatar Jul 20 '22 02:07 lucienwang1009