rayleizhu / BiFormer

[CVPR 2023] Official code release of our paper "BiFormer: Vision Transformer with Bi-Level Routing Attention"
https://arxiv.org/abs/2303.08810
MIT License
460 stars 36 forks source link

from ops.bra_legacy import BiLevelRoutingAttention #31

Closed zhangwenkuan closed 11 months ago

zhangwenkuan commented 11 months ago

Why is the following error reported after the ops library is installed: ModuleNotFoundError: No module named 'ops.bra_legacy'

rayleizhu commented 11 months ago

What's the command you are executing? What is the working directory when you execute it?

You may also need some tutorials about python's import mechanism

zhangwenkuan commented 11 months ago

Hello, thank you for your answer, my problem has been solved!

20191844308 commented 1 week ago

你好,出现了同样的问题,请问怎么解决的

zhangwenkuan commented 1 week ago

仔细看代码,在另一个.py文件中有的

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2024年7月15日(星期一) 下午5:29 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [rayleizhu/BiFormer] from ops.bra_legacy import BiLevelRoutingAttention (Issue #31)

你好,出现了同样的问题,请问怎么解决的

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

20191844308 commented 1 week ago

对呀,明明代码里有,为什么导入还会报错