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 · 1 comment
Open

No module named 'MultiScaleDeformableAttention' #223

CODERED555 opened this issue Jan 15, 2024 · 1 comment

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
    

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

2 participants