当前位置:网站首页>Ubuntu 20 installing centernet

Ubuntu 20 installing centernet

2022-04-23 20:49:00 CC977

Environmental Science :Ubuntu20.04 + python3.6 + pytorch1.7.0 + cuda11.0

install

New environment

conda create --name centernet python=3.6 
conda activate centernet
conda install pytorch==1.7.0 torchvision==0.8.0 torchaudio==0.7.0 -c pytorch
conda install numpy cython matplotlib

Download and install cocoapi

conda activate centernet
cd $COCOAPI/PythonAPI
make
python setup.py install --user

download CenterNet;
download DCNv2_pytorch_1.x Supported version : link 1 | link 2, Name it DCNv2, Replace CenterNet/src/lib/models/networks/DCNv2.

conda activate centernet
pip install -r requirements.txt
cd CenterNet/src/lib/models/networks/DCNv2
./make.sh
# installation is complete , The following are optional 
# Be sure to install it first cocoapi Then execute the following command 
cd CenterNet/src/lib/external
make

KITTI test

版权声明
本文为[CC977]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204232048354054.html