Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' #68

Open
aanavisinha opened this issue Apr 12, 2021 · 18 comments
Open

Comments

@aanavisinha
Copy link

Screenshot 2021-04-12 at 2 26 44 PM

Running the model on Google Colab
@OrangeTT
Copy link

you should compile CUDA operators
cd ./models/ops
sh ./make.sh

@aanavisinha
Copy link
Author

The compilation doesn't work on colab, I tried installing Miniconda on colab but I am not able to create the environment!
Screenshot 2021-04-15 at 10 57 53 AM
Screenshot 2021-04-15 at 10 58 04 AM

@duongnv0499
Copy link

restart your runtime after "sh ./make.sh" command, it worked perfectly in my case.

@zhixiaoqiang-haha
Copy link

you should compile CUDA operators
cd ./models/ops
sh ./make.sh

@duongnv0499 Hello, according to your method, I tried it, but a new problem appeared
import MultiScaleDeformableAttention as MSDA
ImportError: dynamic module does not define module export function (PyInit_MultiScaleDeformableAttention)

@PramodJNUSCS
Copy link

PramodJNUSCS commented Aug 30, 2021

Hello everyone,
When I am trying to rum this command on google colab
Screenshot (53)

I am getting this error.
Screenshot (54)

Its request to everyone please solve my issue. The solution for this issue which has given in this page doesn't work.

@PL2584718785
Copy link

you should compile CUDA operators
cd ./models/ops
sh ./make.sh

@duongnv0499 Hello, according to your method, I tried it, but a new problem appeared import MultiScaleDeformableAttention as MSDA ImportError: dynamic module does not define module export function (PyInit_MultiScaleDeformableAttention)

您好,这个问题我也遇到了,请问您解决了吗,麻烦指教下,谢谢!

@giriprasad51
Copy link

you should compile CUDA operators
cd ./models/ops
sh ./make.sh

@duongnv0499 Hello, according to your method, I tried it, but a new problem appeared import MultiScaleDeformableAttention as MSDA ImportError: dynamic module does not define module export function (PyInit_MultiScaleDeformableAttention)

您好,这个问题我也遇到了,请问您解决了吗,麻烦指教下,谢谢!

Did you find any solution

@ahsdx
Copy link

ahsdx commented Feb 20, 2023

restart your runtime after "sh ./make.sh" command, it worked perfectly in my case.

Did you find any solution?

@dujunl
Copy link

dujunl commented Apr 2, 2023

you should compile CUDA operators
cd ./models/ops
sh ./make.sh

@duongnv0499 Hello, according to your method, I tried it, but a new problem appeared import MultiScaleDeformableAttention as MSDA ImportError: dynamic module does not define module export function (PyInit_MultiScaleDeformableAttention)

您好,这个问题我也遇到了,请问您解决了吗,麻烦指教下,谢谢!

这个问题可以在colab上运行作者给的代码 但是在前面加一行%%shell

@hrjtju
Copy link

hrjtju commented Jul 29, 2023

you should compile CUDA operators cd ./models/ops sh ./make.sh

I ran these commands but still got the same error :(

@huanruizhang123
Copy link

你应该编译 CUDA 运算符
cd ./models/ops
sh ./make.sh

@duongnv0499 你好,按照你的方法,我尝试了一下,但是出现了新的问题 import MultiScaleDeformableAttention as MSDA ImportError: 动态模块没有定义模块导出函数 (PyInit_MultiScaleDeformableAttention)

I also encountered this situation now, there is no such dynamic module, did you solve it?

@ljhOfGithub
Copy link

I am still being stuck by the problem,could you please tell me how to solve it?I want to solve the problem without restarting my server,can I?

@ljhOfGithub
Copy link

I am still being stuck by the problem,could you please tell me how to solve it?I want to solve the problem without restarting my server,can I?我仍然被这个问题所困扰,你能告诉我怎么解决吗?我想在不重新启动服务器的情况下解决问题,可以吗?

I solve the problem by placing the setup.py and make.sh in the right directory because of the demand of the detailed code.

@BirATMAN
Copy link

I am still being stuck by the problem,could you please tell me how to solve it?I want to solve the problem without restarting my server,can I?我仍然被这个问题所困扰,你能告诉我怎么解决吗?我想在不重新启动服务器的情况下解决问题,可以吗?

I solve the problem by placing the setup.py and make.sh in the right directory because of the demand of the detailed code.

Hi, can you please share how you resolved it? what is the "right" directory to place the files?

@BupyeongHealer
Copy link

#223 it will be helpful for you.

@BirATMAN
Copy link

#223 it will be helpful for you.

Thank you I resolved it in a different way.

@simranbajaj06
Copy link

Can anyone help how to resolve this ModuleNotFoundError: No module named 'MultiScaleDeformableAttention' @BirATMAN

@Nihilismer
Copy link

Has anyone solve this problem:ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'. I'm really confused about this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests