yolov7运行detect.py报错invalid syntax

yolov7运行detect.py报错如下:

img

loss.py里面代码信息:

img

报错信息:SyntaxError: invalid syntax
有谁知道怎样解决?