【solo】环境配置
此帖記錄一下SOLO環境配置的過程以及一些問題和解決辦法。
步驟
1.通過git下載SOLO源碼
git clone https://github.com/WXinlong/SOLO.git cd SOLO在使用git命令時,anaconda prompt不能識別,但是cmd可以識別,對此直接conda install git(這一步真是費了好多時間)
2.安裝依賴
pip install -r requirements/build.txt3.安裝pycocoapi
pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI不能用下面這種,會出錯
pip install "git+https://github.com/cocodataset/cocoapi.git#subdirectory=PythonAPI"4.配置mmdet,最好和官方文檔要求一致
pip install mmcv==0.2.165.cuda版本過高不行,比如我第一次時cuda11.3,后來換了cuda10.1,RTX30系列顯卡好像不支持10.x,唉TAT。安裝pytorch,這里參考了這篇文章cuda10.1+pytorch1.7配置centernet環境
配置清華鏡像conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --set show_channel_urls yes conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
安裝pytorch
6.編譯
python setup.py develop7.環境測試(這一步參考【SOLO】環境配置(mmdetection=1.0.0+mmcv = 0.2.15))
SOLO目錄下創建checkpoints文件夾,存入model文件,Decoupled_SOLO_R50_3x:
最后結果如圖所示:
總結
以上是生活随笔為你收集整理的【solo】环境配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 计算机基础电大操作水滴,开放大学计算机应
- 下一篇: 汉诺塔递归的空间复杂度_算法分析中的空间