catherinesyeh / attention-viz

Visualizing query-key interactions in language + vision transformers
http://attentionviz.com/
MIT License
123 stars 15 forks source link

Optimize point cloud computation #22

Closed wowjyu closed 1 year ago

wowjyu commented 1 year ago

Currently, the point cloud data is computed upon two listeners, which is very inefficient. I did not implement memory management so sometimes the browser crashes after several runs. Ideally, the point cloud data should be computed once upon loading the data.

wowjyu commented 1 year ago

Updates: Set 1 millions of points to Vuex.state will crash. Computed adds a lot of bloated logic and slow code that listens for everything.