CLTR icon indicating copy to clipboard operation
CLTR copied to clipboard

NWPU test

Open BurstLink666 opened this issue 1 year ago • 3 comments

作者您好,

使用您提供的预训练模型,参考FIDTM中的local eval部分代码,生成test数据集上的预测结果predictions.txt后上传到NWPU benchmark后,计算的人群定位指标非常差,3个指标都在0.08左右。请问是什么原因?

BurstLink666 avatar Oct 25 '24 02:10 BurstLink666

NWPU得上传原图大小的coordinate,默认的prediction好像是2048的

dk-liang avatar Oct 25 '24 03:10 dk-liang

在对图片进行缩放时,有记录rate,并在获取coordinate后有使用

for i in range(count): w = int(pred_coor[i][1] / rate) h = int(pred_coor[i][0] / rate)

来将coordinate还原回原图大小

BurstLink666 avatar Oct 28 '24 02:10 BurstLink666

输出可视化结果后,图像大小和原数据集中的test图像大小相同,且大部分坐标点都正确标在人的头部,但是上传后计算得到的指标始终不超过0.1,如图是我输出的测试结果

test_3612

BurstLink666 avatar Oct 29 '24 03:10 BurstLink666