damo-cv / ELSA

The official implementation of ELSA: Enhanced Local Self-Attention for Vision Transformer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to import 'elsa_ext' and 'elsa_faster_ext'

SIAOHEO opened this issue · comments

commented

from . import elsa_ext, elsa_faster_ext in file elsa.py

there's always red line under elsa_ext, elsa_faster_ext

please build the elsa operation:

cd ./cls/models/elsa
python setup.py install
mv build/lib*/* .
cp *.so ../../../det/mmdet/models/backbones/elsa/
cp *.so ../../../seg/mmseg/models/backbones/elsa/
cd ../../../

Please give Elsa_ ext, elsa_ faster_ The detailed steps of ext configuration always show errors

ImportError: dynamic module does not define module export function (PyInit_elsa_faster_ext)

Please make sure to build the ".so" files and move them into the correct dictionary.