一、检查有无cuda与cudnn时报错
SyntaxError: Non-UTF-8 code starting with '\xb1' in file D:\Software\yolov5-5.0\1.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
不能有中文注释,如果还报错可以在首行添加这行代码
# coding=utf-8
SyntaxError: Non-UTF-8 code starting with '\xb1' in file D:\Software\yolov5-5.0\1.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
不能有中文注释,如果还报错可以在首行添加这行代码
# coding=utf-8