mahmoodlab / HIPT

Hierarchical Image Pyramid Transformer - CVPR 2022 (Oral)
Other
509 stars 89 forks source link

Fix attention notebook #31

Closed Arkkienkeli closed 1 year ago

Arkkienkeli commented 1 year ago

Hi, this PR is supposed to help with #29 and #30, though I am not sure if it does not affect other parts of the code. The problem is that the usage of devices in the code is mixed (switched to cpu everywhere in this PR). Some missing imports are added.

I don't think it is good to be merged as is, but if you have feedback I or someone else could improve it. Now it is more like a temporal solution.