lucidrains / rotary-embedding-torch

Implementation of Rotary Embeddings, from the Roformer paper, in Pytorch
MIT License
573 stars 44 forks source link

RoPE on Images #19

Closed aaprasad closed 9 months ago

aaprasad commented 9 months ago

Hi, really helpful implementation! I know RoPE was originally designed for NLP tasks but I was wondering how it might be extended to other domains like computer vision with images?

lucidrains commented 9 months ago

there's an example in the readme for axial rotary embeddings, allowing for images and video support