fundamentalvision / Deformable-DETR

Deformable DETR: Deformable Transformers for End-to-End Object Detection.
Apache License 2.0
3.14k stars 513 forks source link

No module named 'MultiScaleDeformableAttention' #223

Open CODERED555 opened 8 months ago

CODERED555 commented 8 months ago

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

BupyeongHealer commented 7 months ago

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