NameError: name ‘F’ is not defined 解决方法: 在yolov5 ----->common.py文件中添加下面代码: import torch.nn.functional as F