MenghaoGuo / PCT

Jittor implementation of PCT:Point Cloud Transformer
661 stars 80 forks source link

the code about attention map #3

Closed kingziqiao closed 3 years ago

kingziqiao commented 3 years ago

Thank you very much for your work. Could you please provide me with the code for drawing the attention map, like this

MenghaoGuo commented 3 years ago

We draw the attention map with the support of meshlab. The code of drawing attention map is simply saving .txt file. The attention map can be drawed by following steps:

  1. Choose query point i.
  2. Convert the value of attention A[i,j] to the depth of color and save both position and color of all point j as .txt file
  3. Open the saved .txt file by meshlab to render point cloud.

By the way, the link of your mention may be failed.