THU-MIG / yolov10

YOLOv10: Real-Time End-to-End Object Detection [NeurIPS 2024]
https://arxiv.org/abs/2405.14458
GNU Affero General Public License v3.0
10.04k stars 1k forks source link

UserWarning: Got processor for bboxes, but no transform to process it. #316

Open BusraKubra opened 5 months ago

BusraKubra commented 5 months ago

I get an error when I run the following line of code:

!yolo task=detect mode=train epochs=50 batch=40 plots=True model=weights/yolov10n.pt data=/home/data.yaml

Error:

/home/miniconda3/lib/python3.10/site-packages/albumentations/core/composition.py:147: UserWarning: Got processor for bboxes, but no transform to process it. self._set_keys()

What could be the reason for this?

CFZ1 commented 2 months ago

The issue is due to an incompatible version of Albumentations. This warning was introduced in Albumentations version >=1.4.7.

warnings.warn(f"Got processor for {proc.default_data_name}, but no transform to process it.")

When I use Albumentations version 1.0.3, the warning doesn’t appear at all. As for whether any other modifications are needed besides changing the Albumentations version, I’m not sure. However, without any additional changes, YOLOv10 can still detect the targets successfully.

zzw725 commented 3 weeks ago

When I use Albumentations version 1.0.3, the warning doesn’t appear at all.But there's a new error. ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

CFZ1 commented 3 weeks ago

When I use Albumentations version 1.0.3, the warning doesn’t appear at all.But there's a new error. ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Will it be because the versions of our other packages are different. You may need to check which package is reporting the error. And try changing the version. Here are the versions of all my packages: Package Version Editable project location


addict 2.4.0 albucore 0.0.13 albumentations 1.0.3 annotated-types 0.7.0 certifi 2024.7.4 charset-normalizer 3.3.2 contourpy 1.1.1 cycler 0.12.1 eval_type_backport 0.2.0 filelock 3.15.4 fonttools 4.53.1 fsspec 2024.6.1 huggingface-hub 0.24.6 idna 3.8 imageio 2.35.1 importlib_metadata 8.4.0 importlib_resources 6.4.4 kiwisolver 1.4.5 lazy_loader 0.4 markdown-it-py 3.0.0 matplotlib 3.7.5 mdurl 0.1.2 mmcv 2.0.0rc4 mmdet 3.3.0 /root/offi_yolov10/mmdetection_v3d3d0 mmengine 0.10.4 networkx 3.1 numpy 1.24.4 opencv-python 4.10.0.84 opencv-python-headless 4.10.0.84 packaging 24.1 pandas 2.0.3 pillow 10.4.0 pip 24.2 platformdirs 4.2.2 psutil 6.0.0 py-cpuinfo 9.0.0 pycocotools 2.0.7 pydantic 2.8.2 pydantic_core 2.20.1 Pygments 2.18.0 pyparsing 3.1.2 python-dateutil 2.9.0.post0 pytz 2024.1 PyWavelets 1.4.1 PyYAML 6.0.2 requests 2.32.3 rich 13.7.1 scikit-image 0.21.0 scipy 1.10.1 seaborn 0.13.2 setuptools 72.1.0 shapely 2.0.6 six 1.16.0 termcolor 2.4.0 terminaltables 3.1.10 thop 0.1.1.post2209072238 tifffile 2023.7.10 tomli 2.0.1 torch 1.10.0+cu113 torchvision 0.11.0+cu113 tqdm 4.66.5 typing_extensions 4.12.2 tzdata 2024.1 ultralytics 8.1.34 /root/offi_yolov10/yolov10_241030down urllib3 2.2.2 wheel 0.43.0 yapf 0.40.2 zipp 3.20.0