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

运行vis4val.py时出错 Key Error 求解~ #16

Open
lizxko2009 opened this issue Apr 20, 2021 · 1 comment
Open

运行vis4val.py时出错 Key Error 求解~ #16

lizxko2009 opened this issue Apr 20, 2021 · 1 comment

Comments

@lizxko2009
Copy link

(IIM) E:\IIM-main\IIM>python vis4val.py
3110
Traceback (most recent call last):
File "vis4val.py", line 101, in
main()
File "vis4val.py", line 34, in main
if gt_data[i_sample]['num'] ==0 and pred_data[i_sample]['num'] !=0:
KeyError: 3110

@taohan10200
Copy link
Owner

请确认val_gt_loc.txt和生成的预测文件的格式,如下:
pred.txt
3110+人数 + 预测的人头坐标(x, y)
3111 .......
...............
val_gt_loc.txt
3110 + 人数 +人头的位置和size信息(x, y, sigma_s, sigma_l, level)
3111 ......
.................
其中,3110,3111对应着NWPU数据集里图片的ID

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

2 participants