Boosting-Crowd-Counting-via-Multifaceted-Attention icon indicating copy to clipboard operation
Boosting-Crowd-Counting-via-Multifaceted-Attention copied to clipboard

save_attention.py问题

Open WzW0122 opened this issue 1 year ago • 1 comments

您好!请问我在运行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.”该问题,是不是因为这个代码针对不同图片需要进行修改?

WzW0122 avatar Jan 03 '24 09:01 WzW0122