源碼地址:https://github.com/xingyizhou/CenterNet
新手上路先看readme.md,本文按照readme的思路一步步復現
1.Installation
Please refer to INSTALL.md for installation instructions.
(這部分有些git clone太慢了,我都是直接下載下來然後用Xftp傳到服務器上的)
- 1. 配置conda環境
作者使用的是pytorch_0.4.1,我們現在基本都是1.0以上版本了,有些出入。
這裏作者提出 disable cudnn batch normalization(Due to this issue). 暫時沒看懂???????????
- 2. 下載COCO數據集和API
COCO下載地址:http://cocodataset.org/#download
- 3. 下載本項目用到的庫
pip install -r requirements.txt
問題1:cocoAPI下載配置時make報錯及解決方式參考該博客:https://blog.csdn.net/qq_32768743/article/details/80202429
問題2:pip install非常之慢, 改爲國內源下載,參考這個:https://blog.csdn.net/yang5915/article/details/83175804
問題3:下DCNv2時報錯,參考這個:https://github.com/xingyizhou/CenterNet/issues/7
這一步make.sh權限問題參考這個:https://blog.csdn.net/yzh54ak/article/details/5787808