只需要将上级目录添加就可以啦 from utils.nms.cpu_nms import cpu_nms, cpu_soft_nms from utils.nms.gpu_nms import gpu_nms