windows下配置pysot
1.下載源碼
https://github.com/STVIR/pysot
2.pycharm打開工程,提示缺少哪個庫,就用pip安裝
3.添加環境變量,系統變量添加PYSOT,然後路徑填寫源碼路徑
4.下載模型
https://pan.baidu.com/share/init?surl=GB9-aTtjG57SebraVoBfuQ
提取碼:j9yb
將下載後的模型裏面的model.pth複製到pysot-master\experiments\下面對應的文件夾,不要替換config.yaml
5.pycharm配置:
Run->Edit Configurations編輯script path和parameters
parameters中爲
--config experiments/siamrpn_r50_l234_dwxcorr/config.yaml--snapshot experiments/siamrpn_r50_l234_dwxcorr/model.pth --video demo/bag.avi
如果想測試計算機自帶相機,可以使用以下配置
--config experiments/siamrpn_r50_l234_dwxcorr/config.yaml--snapshot experiments/siamrpn_r50_l234_dwxcorr/model.pth
6.over!