LoraLinH / Boosting-Crowd-Counting-via-Multifaceted-Attention

Official Implement of CVPR 2022 paper 'Boosting Crowd Counting via Multifaceted Attention'
MIT License
106 stars 20 forks source link

save_attention.py问题 #18

Open WzW0122 opened 9 months ago

WzW0122 commented 9 months ago

您好!请问我在运行save_attention.py该文件时,在line84行出现“RuntimeError: requested resize to 13x20 (260 elements in total), but the given tensor has a size of 512 (512 elements). autograd's resize can only change the shape of a given tensor, while preserving the number of elements.”该问题,是不是因为这个代码针对不同图片需要进行修改?

cyn2399 commented 3 months ago

我也遇到这个问题,请问您是怎么解决的