-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
你这个安装教程不对啊! #11926
Comments
@Keiku @hhaAndroid 希望看下, 更新下 mmcv 和 mmdet 的兼容性. |
果然还是自己最能了解自己,在我尝试了两个pip虚拟环境以及一个miniconda的环境以后,我认为环境搭建成功的秘诀在于各个软件版本的对应问题,比如说。教程中说安装mmengine的方式是这样的pip install mmengine,这谁不会啊,,但是你pip这么个装法,还就是真的不对,因为打开git上的mmengine主页,标题下面的小字就能看到,人家要求torch1.6-2.1,咱根据torch官网装了个2.4,那必然要报错啊,说不定mmengine开发的时候,torch2.4还没有呢,怎么能要求各个api都能对应的起来呢?所以,我在这里之说我自己装了的能跑推理和yolov3训练的但是还有warning的环境,仅供各位参考,有啥说的不对的,欢迎匹配指出:首先需要一台电脑,我的是ubuntu22服务器,硬件是双4090,显卡驱动,cuda11.8,cudnn8.9.7,nccl版本不详(单卡不用装这个),python3.9,首先创建一个虚拟环境,我用的是venv,然后装torch2.1(torch官网上找到的版本是pip install torch==2.1.0 torchvision==0.16.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cu118 |
最后还是感谢mmdetection开源项目,虽然环境安装费了些功夫,但是不管是框架还是代码都有很多可以学习的地方,致敬大佬们,我再继续学习学习去了。 |
@lingdujunshang 这个只是告警,推理已经成功了,result在temp目录. 最好用镜像来跑
|
这是我安装的history,环境ubuntu22,cuda11.8(带cudnn,nccl),python3.9,4090显卡,,哪一步都是照着教程做的,最后我只得到了一堆报错,
Traceback (most recent call last):
File "demo/image_demo.py", line 63, in
from mmdet.apis import DetInferencer
File "/home/xuqing/miniconda3/mmdetection/mmdet/init.py", line 16, in
assert (mmcv_version >= digit_version(mmcv_minimum_version)
AssertionError: MMCV==2.2.0 is used but incompatible. Please install mmcv>=2.0.0rc4, <2.2.0.
我对mmdetection没啥意见,咱就是说,入门的安装教程跑不起来,后面咋跑啊,
2055 mkdir -p ~/miniconda3
2056 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
2057 bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
2058 cd ~/miniconda3/
2059 ls
2060 conda --version
2061 ~/miniconda3/bin/conda init bash
2062 ~/miniconda3/bin/conda init zsh
2063 cat ~/.zshrc
2064 cd ..
2065 conda create --name openmmlab python=3.8 -y
2066 cd miniconda3/
2067 conda --version
2068 ls
2069 /home/xuqing/miniconda3/bin/conda --version
2070 /home/xuqing/miniconda3/bin/conda create --name openmmlab python=3.8 -y
2071 cat ~/.zshrc
2072 vim ~/.bashrc
2073 source ~/.bashrc
2074 vim ~/.bashrc
2075 conda activate openmmlab
2076 conda install pytorch torchvision -c pytorch
2077 pip install -U openmim
2078 conda install pytorch torchvision -c pytorch
2079 conda install fsspec
2080 pip install -U openmim
2081 mim install mmengine
2082 mim install "mmcv>=2.0.0"
2083 git clone https://github.com/open-mmlab/mmdetection.git
2084 cd mmdetection
2085 pip install -v -e .
2086 mim download mmdet --config rtmdet_tiny_8xb32-300e_coco --dest .
2087 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
2088 mim install mmcv==2.0.0rc4 (#装不上。失败)
大佬们把这个代码开源出来供大家学习,确实是感谢,就是吧,这个教程实在是跑不通,也不利于长期发展啊,,如果需要支援,需要各种环境测试,我愿意支持,啥时候能把安装教程给更新一下就好了。
The text was updated successfully, but these errors were encountered: