(31)get_map.py-Error. File not found: /home/PycharmProjects/input/ground-truth-3/000035.txt

使用改为两个检测头的代码计算VOC数据集的mAP,报错:

/home/.conda/envs/ultralytics_yolov3/bin/python /home/PycharmProjects/yolov4/3-PA-tiny/get_map.py
Error. File not found: /home/PycharmProjects/yolov4/3-PA-tiny/input/ground-truth-3/000035.txt
(You can avoid this error message by running extra/intersect-gt-and-dr.py)

检查2007_test数据集的ground_truth和dr文件,发现ground_truth中的全部与2007_test数据集中一一对应,而dr也就是预测结果中多出来的好多个文件,也就是数据测试集中明明没有000035这个图片,而dr中居然有它的预测结果。

ground_truth文件如下图:

预测的dr文件如图:

可以看出,dr文件比ground truth文件里多出了不止000035这一个。

所以可能是get_dr_txt.py中哪里没改对?

删除所有预测文件重新预测,发现一一对应了,就,很迷惑。。。。

 

 

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
根据你提供的安装命令,出现以下报错,请分析是什么原因,需要如何解决:C:\Users\Administrator>pip install pysqlcipher3 Collecting pysqlcipher3 Using cached pysqlcipher3-1.2.0.tar.gz (102 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: pysqlcipher3 Building wheel for pysqlcipher3 (setup.py) ... done WARNING: Legacy build of wheel for 'pysqlcipher3' created no files. Command arguments: 'C:\Users\Administrator\AppData\Local\Programs\Python\Python38\python.exe' -u -c ' exec(compile('"'"''"'"''"'"' # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py # # - It imports setuptools before invoking setup.py, to enable projects that directly # import from `distutils.core` to work with newer packaging standards. # - It provides a clear error message when setuptools is not installed. # - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so # setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning: # manifest_maker: standard file '"'"'-c'"'"' not found". # - It generates a shim setup.py, for handling setup.cfg-only projects. import os, sys, tokenize try: import setuptools except ImportError as error: print( "ERROR: Can not execute `setup.py` since setuptools is not available in " "the build environment.", file=sys.stderr, ) sys.exit(1) __file__ = %r sys.argv[0] = __file__ if os.path.exists(__file__): filename = __file__ with tokenize.open(__file__) as f: setup_py_code = f.read() else: filename = "<auto-generated setuptools caller>" setup_py_code = "from setuptools import setup; setup()" exec(compile(setup_py_code, filename, "exec")) '"'"''"'"''"'"' % ('"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\pip-install-kpw5ylk5\\pysqlcipher3_64cff8baaca94d668d7efe41a1e57482\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d 'C:\Users\Administrator\AppData\Local\Temp\pip-wheel-kj2j7asn' Command output: [use --verbose to show] Running setup.py clean for pysqlcipher3 Failed to build pysqlcipher3 ERROR: Could not build wheels for pysqlcipher3, which is required to install pyproject.toml-based projects
最新发布
06-09

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值