open-mmlab / mmyolo

OpenMMLab YOLO series toolbox and benchmark. Implemented RTMDet, RTMDet-Rotated,YOLOv5, YOLOv6, YOLOv7, YOLOv8,YOLOX, PPYOLOE, etc.
https://mmyolo.readthedocs.io/zh_CN/dev/
GNU General Public License v3.0
3k stars 540 forks source link

albumentations is not installed #813

Open TingqiaoXu opened 1 year ago

TingqiaoXu commented 1 year ago

Prerequisite

🐞 Describe the bug

when use python3 tools/train.py configs/yolov5/yolov5_s-v61_fast_1xb12-40e_cat.py, it occurs error:

RuntimeError: class EpochBasedTrainLoop in mmengine/runner/loops.py: class YOLOv5CocoDataset in mmyolo/datasets/yolov5_coco.py: class Albu in mmdet/datasets/transforms/transforms.py: albumentations is not installed

but i have installed albumentations.

Environment

sys.platform: linux Python: 3.8.10 (default, May 26 2023, 14:05:08) [GCC 9.4.0] CUDA available: True numpy_random_seed: 2147483648 GPU 0,1,2,3,4,5,6,7,8,9: NVIDIA GeForce GTX 1080 Ti CUDA_HOME: /data/cuda/cuda-11.3 NVCC: Cuda compilation tools, release 11.3, V11.3.58 GCC: x86_64-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 PyTorch: 1.12.1+cu113 PyTorch compiling details: PyTorch built with:

TorchVision: 0.13.1+cu113 OpenCV: 3.4.11 MMEngine: 0.7.4 MMCV: 2.0.0 MMDetection: 3.0.0 MMYOLO: 0.5.0+dc85144

Additional information

No response

Lum1104 commented 1 year ago

Try pip install -U albumentations maybe it would help you fix the problem~

Lum1104 commented 1 year ago

If you still get into trouble, you can check this link. https://github.com/open-mmlab/mmyolo/issues/746#issuecomment-1519770584

TingqiaoXu commented 1 year ago

Try pip install -U albumentations maybe it would help you fix the problem~

yes, you are right. I reinstall albumentations and it works. Thank you~