YOLOv6 icon indicating copy to clipboard operation
YOLOv6 copied to clipboard

module 'PIL.Image' has no attribute 'ANTIALIAS'

Open Egorundel opened this issue 1 year ago • 2 comments

Before Asking

  • [X] I have read the README carefully. 我已经仔细阅读了README上的操作指引。

  • [X] I want to train my custom dataset, and I have read the tutorials for training your custom data carefully and organize my dataset correctly; (FYI: We recommand you to apply the config files of xx_finetune.py.) 我想训练自定义数据集,我已经仔细阅读了训练自定义数据的教程,以及按照正确的目录结构存放数据集。(FYI: 我们推荐使用xx_finetune.py等配置文件训练自定义数据集。)

  • [X] I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码,重新运行之后,问题仍不能解决。

Search before asking

  • [X] I have searched the YOLOv6 issues and found no similar questions.

Question

Hello! Why does this error occur after training (python3 tools/train.py --workers 8 --device 0 --epochs 3 --batch 8 --conf configs/yolov6l6_finetune.py --data data/dataset.yaml --name yolov6-custom)?

module 'PIL.Image' has no attribute 'ANTIALIAS'

Screenshot from 2023-09-15 11-18-22

Additional

No response

Egorundel avatar Sep 15 '23 08:09 Egorundel

Hi, it seems that you are using Pillow >= 10.0.0 , you can try the following method. pip uninstall Pillow pip install Pillow==9.5.0

Chilicyy avatar Sep 15 '23 11:09 Chilicyy

@Chilicyy thanks, it works)

Egorundel avatar Sep 18 '23 05:09 Egorundel