Project material supplement
https://github.com/Duankaiwen/LSNet
matplotlib
shapely
scipy
torch==1.5.0
torch==0.6.0
pip3 install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch1.5.0/index.html
cd /home/yq/work-test/2021/LSNet-main/code
python3 setup.py develop
a. 先安装pip3 install cython
b. cd code/cocoapi/pycocotools
c. Python3 setup.py develop
./code/mmdet/ops/conv_ws.py
第25行改成:@CONV_LAYERS.register_module(name='ConvWS', force=True)
第52行改成:@CONV_LAYERS.register_module(name='ConvAWS', force=True)
如果遇到错误ImportError: libcudart.so.10.0: cannot open shared object file: No such file or directory
sudo ldconfig /usr/local/cuda-10.0/lib64
路径:code/configs
'./_base_/datasets/coco_lsvr.py', #数据设置
'./_base_/schedules/schedule_1x.py',#模型设置
'./_base_/default_runtime.py'
cd code/tools
python gen_coco_lsvr.py
生成instances_lsvr_train2017.json,instances_lsvr_val2017.json,放入路径coco/annotations
./code/tools/dist_train.sh ./code/configs/lsnet/lsnet_bbox_r50_fpn_1x_coco.py 2 --work-dir work_dir/lsnet_bbox_r50_fpn_1x_coco
./code/tools/dist_train.sh ./code/configs/lsnet/lsnet_pose_bbox_r50_fpn_1x_coco.py 2 --work-dir work_dir/lsnet_pose_bbox_r50_fpn_1x_coco
python3 code/tools/test.py code/configs/lsnet/lsnet_bbox_r50_fpn_1x_coco.py work_dir/lsnet_bbox_r50_fpn_1x_coco/epoch_12.pth --show-dir ./results
python3 code/tools/test.py code/configs/lsnet/lsnet_pose_bbox_r50_fpn_1x_coco.py work_dir/lsnet_pose_bbox_r50_fpn_1x_coco/epoch_12.pth --show-dir ./results
用virtualenv包