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

可视化 #15

Open zhukaijie98 opened 11 months ago

zhukaijie98 commented 11 months ago

作者您好,我在运行可视化代码save_attention.py时,遇到了以下问题:

RuntimeError: requested resize to 19x16 (304 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.想问下您该怎么解决呢