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

No module named 'MultiScaleDeformableAttention' #223

Open
CODERED555 opened this issue Jan 15, 2024 · 2 comments
Open

No module named 'MultiScaleDeformableAttention' #223

CODERED555 opened this issue Jan 15, 2024 · 2 comments

Comments

@CODERED555
Copy link

when I try to sh ./make.sh,it shows that ModuleNotFoundError: No module named 'torch',how can i solve this problem.
1705336100203

@BupyeongHealer
Copy link

I encountered the same error and resolved it. The error originated from python3 setup.py install. If you replace install with build, it will work for you.

Here is my solution:

  1. Install Ninja:

    apt-get install ninja-build
    
  2. Build using a different command:

    python3 setup.py build
    pip3 install .
    
  3. Test:

    python3 test.py
    

@Nihilismer
Copy link

I used windows system to download ninja as you said, and then I ran the build command in the terminal of pycharm, but it seems that nothing happened. I would like to ask you how to continue to solve the problem of No module named 'MultiScaleDeformableAttention'.Thank you so much @BupyeongHealer

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

3 participants