Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照readme运行test.py得到的检测指标很低 #20

Open
suibiandefansi opened this issue Dec 11, 2024 · 0 comments
Open

按照readme运行test.py得到的检测指标很低 #20

suibiandefansi opened this issue Dec 11, 2024 · 0 comments

Comments

@suibiandefansi
Copy link

suibiandefansi commented Dec 11, 2024

按照readme运行test.py文件,对mAP进行eval,得到的检测指标很低,如下图所示。且test.py文件不能选择--show,否则就会报错AttributeError: 'list' object has no attribute 'data',且运行融合图像生成代码,生成的彩色图像很奇怪。数据集用的readme中说的数据集,代码也未进行除数据/权重路径及保存路径外的更改。

可以请问一下是什么原因吗?

python ./tools/test.py --eval mAP 运行结果(检测精度低):
微信截图_20241211170036

python ./tools/test.py --show --show_dir './results/' 运行结果:
File "./tools/test.py", line 229, in main
outputs = single_gpu_test(model, data_loader, args.show, args.show_dir,
File "D:\ProgramData\anaconda3\envs\python\lib\site-packages\mmdet\apis\test.py", line 36, in single_gpu_test
img_tensor = data['img'][0].data[0]

微信图片_20241211151004

python ./tools/generation_fusion_image.py 运行得到的RGB2HSV空间图片:
微信图片_20241211170619

@suibiandefansi suibiandefansi changed the title 运行test文件报错 'list' object has no attribute 'data' 按照readme运行test.py得到的检测指标很低 Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant