网上未找到类似错误,记录一下bug的排查过程。

排查流程
1. 尝试直接解决status127错误无果,翻看之前的错误代码发现了如下问题

    问题:/bin/sh: git 未找到命令
    解决:在Linux系统上安装Git命令
2. 问题:fatal: 不是一个 git 仓库(或者直至挂载点 /home 的任何父目录) 停止在文件系统边界(未设置 GIT_DISCOVERY_ACROSS_FILESYSTEM)
    解决:在终端输入git init
3. 问题: fatal: detected dubious ownership in repository at '/home/**' To add an exception for this directory, call: git config --global --add safe.directory /home/** 
    解决:按照命令要求输入git config --global --add safe.directory /home/**
4. 问题:File "/home/**/yolov7-main/utils/google_utils.py", line 26, in attempt_download assets = [x['name'] for x in response['assets']] # release assets KeyError: 'assets'
    解决过程:

        ① 检查google_utils中attempt_download函数
        ② file = Path(str(file).strip().replace("'", '').lower()) 中.lower()会将路径地址全部小写,导致找不到正确的权重路径
        ③ 将此函数改为file = Path(str(file).strip().replace("'", ''))

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐