最近更新于 2024-05-05 14:18
我在 Jetson Nano 上使用 Docker (https://blog.iyatt.com/?p=5822 :blog.iyatt.com-ubuntu_18.04-cuda_10.2-cudnn_8.2.1-opencv_contrib_4.5.5-tensorflow_2.5.0-pytorch_1.10.0_vision_0.11.1-gnu_7.5.0-python_3.6.15-arm64.tar)在里面运行 yolov5/train.py (YOLOv5 v6.1)测试能否正常使用时遇到 UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\U0001f680’ in position 99: ordinal not in ,可以在执行代码时在前面指定编码为 utf-8 就没问题了。
PYTHONIOENCODING=utf-8 python3 yolov5/train.py ...
UnicodeEncodeError: ‘ascii’ codec can’t encode character ‘\U0001f680’ in position 99: ordinal not in