Open lsch0lz opened 8 months ago
Try using pytorch 1.X version
I have the same question, have you solved this problem?
Try installing mmcv with MCV_WITH_OPS=1, FORCE_CUDA=1 and install mmcv from source. That resolved my problem as it generated mmcv._ext file....
@vetsasai - ideally shouldn't have to do that. Also, pip keeps installing the pypi version and overwriting the built from source version.
I want to install the mmcv with cpu version. How can I install it on an edge device not from Nvidia..
I try several time for installation, but always got the error no module named: mmcv._ext。。Hope someone can help to give usefule advice, thanks in advance.
method 1:
git clone -b v1.7.1 https://github.com/open-mmlab/mmcv.git
cd mmcv && pip install -r requirements/optional.txt
MMCV_WITH_OPS=1 pip install -e .
install successfully, but got error when testing: no module named: mmcv._ext
method 2: pip install -U openmim mim install mmcv found installation error。。。
method 3: pip install torch==2.1.0 MMCV_WITH_OPS=1 pip install git+https://github.com/open-mmlab/mmcv -v
install successfully, but got error when testing: no module named: mmcv._ext
I managed to resolve the mmcv._ext
issue when running the test installation script: python demo/image_demo.py demo/demo.jpg rtmdet_tiny_8xb32-300e_coco.py --weights rtmdet_tiny_8xb32-300e_coco_20220902_112414-78e30dcc.pth --device cpu
!
I have an M3 Pro and a Python 3.11 miniconda installation. I created a virtual environment with python -m venv venv
. Then, I installed the following packages:
pip install torch==2.1.2
pip install torchvision==0.16.2
pip install numpy==1.26.4
pip install openmim
mim install mmengine
mim install "mmcv==2.1.0"
mim install mmdet
I found it's important to use mim
and not pip
when installing the openmmlab packages.
Thanks for your error report and we appreciate it a lot.
Checklist
Describe the bug I can't install mmdetection local on my M1 MacbookPro. I follow each step in the GET STARTED Guide, but no matter what I do, I always get the following error:
Reproduction
I use mmdet as a dependency in my project.
test_pipeline.py
And the test, which should execute the test_pipeline:
I just wanted to test, if everything works with the setup, so don't mind the logic behind this test. Instead of an output I get the following error-log:
Environment
Also I already tried every possible solution from this issue #3271 . I cant downgrade to mmcv-full, since mmdet 3.0.0 is not working with mmcv-full 1.7.X.
I also tried this with several python versions.. Any suggestions whats wrong here?
Edit: When doing the same steps on a linux machine everything works fine...