XiaLiPKU / EMANet

The code for Expectation-Maximization Attention Networks for Semantic Segmentation (ICCV'2019 Oral)

Home Page:https://xialipku.github.io/publication/expectation-maximization-attention-networks-for-semantic-segmentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

about visualization on attention maps

amiltonwong opened this issue · comments

Hi, @XiaLiPKU ,

Could you also provide the code for visualizing on attention maps, like the responses Z in Fig.5?

THX!

cv2.imwrite(z[0, 0].cpu().numpy().reshape(h, w))

@amiltonwong
Did you succeed?
valueError: cannot reshape array of size 64 into shapec(43,26)
thanks