installation steps
– download the project file
https://github.com/STVIR/pysot.git
– create conda environment
https://github.com/STVIR/pysot/blob/master/INSTALL.md
the second installation, manual configuration environment, the command is as follows, to add tsinghua source https://pypi.tuna.tsinghua.edu.cn/simple p>
conda create --name pysot python=3.7
conda activate pysot
conda install numpy
conda install pytorch=0.4.1 torchvision cuda90 -c pytorch
pip install opencv-python
pip install pyyaml yacs tqdm colorama matplotlib cython tensorboardX
# change dir to project
python setup.py build_ext --inplace
download model file
the baidu cloud https://github.com/STVIR/pysot/blob/master/MODEL_ZOO.md file download, only copy pysot/experiments in the file mode, PTH, not to replace the corresponding congfig. Yaml p>
configure the environment variable
export PYTHONPATH=/path/to/pysot:$PYTHONPATH
to export PYTHONPATH =/home/Cody/PycharmProjects/pysot: $PYTHONPATH p>
or use pycharm to configure
https://blog.csdn.net/sements/article/details/105495812/
demo run strong> p>
Reference
strong> https://blog.csdn.net/sements/article/details/105495812/ p>
here use pycharm to run, select the corresponding Python compiler, and run -> Edit Configurations, set and select the running demo.py file, and add the running parameter
in paramters
–config .. /experiments/siamrpn_r50_l234_dwxcorr/config.yaml
–snapshot .. /experiments/siamrpn_r50_l234_dwxcorr/model.pth
–video ../demo/bag. Avi
p>
effect display
Run demo.py, pop up the display box, select the area with the left mouse button and press enter to