linux运行.sh,报window字符错误?

报错:bash: ./convert_to_onnx.sh: /bin/bash^M: 解释器错误: 没有那个文件或目录。方法:sed -i 's/\M$//' convert_to_onnx.sh
报错:FileNotFoundError: [Errno 2] No such file or directory: 'retinaface-weights/slimv2_015\r/slim_Final.pth'。方法:sed -i 's/\r$//' convert_to_onnx.sh

posted @ 2026-03-18 08:43  cotus  阅读(1)  评论(0)    收藏  举报