Giter Club home page Giter Club logo

yolov4_siamrpn's Introduction

How to use

Requierment

  • CUDA 10.2
  • OpenCV 4.1.1 with contrib(KCF need)
  • TensorRT 7.1.3.0
  • cuDNN 8.0.0
  • Python3.6
  • pip3 (make sure it's the new version:20.3.3)
  • pycuda (run pip3 install pycuda)
  • Numpy (run pip3 install numpy)
  • pytorch 1.6.0 (without Anaconda)
  • opencv-python 4.4.0.46
  • tqdm
  • pyyaml
  • matplotlib
  • colorama
  • cython
  • tensorboardX

How to install OpenCV4.1.1 with CUDA in Jetson platform

sudo apt-get purge libopencv* # delete old version

cd ~

bash install_opencv4.1.1_jetson.sh # download the source and install

Problem

In file included from /home/esraa/opencv_contrib/modules/cudaarithm/src/cuda/normalize.cu:53:0:
/home/esraa/opencv/modules/core/include/opencv2/core/private.cuda.hpp:75:0: warning: "NPP_VERSION" redefined
 #  define NPP_VERSION (NPP_VERSION_MAJOR * 1000 + NPP_VERSION_MINOR * 100 + NPP_VERSION_BUILD)

Just use ifndef and define solve it

solution

~/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:673:20: fatal error: boostdesc_bgm.i: No such file or directory

because of the network problem,i can't download those files

solution

How to install PySOT without Anaconda

Step-by-step instructions

Install numpy/pytorch/opencv

pip3 install numpy pip3 install pytorch pip3 install opencv-python

Install other requirements

pip3 install pyyaml yacs tqdm colorama matplotlib cython tensorboardX

Build extensions

python setup.py build_ext --inplace

Problem

There are always some errors when we install pytorch, opencv-python and some other libs on aarch64 architecture by pip. Then you can download source from pytorch.org or pypi.org, excute the following instructions on terminal to install them.

python3 setup.py build
python3 setup.py install

How to Excute Demo

Add PySOT to your PYTHONPATH

export PYTHONPATH=/home/nvidia/yolo_siamrpn++:$PYTHONPATH #Your project path

Download models

Download models in PySOT Model Zoo and put the model.pth in the correct directory in experiments.

Webcam demo

backbone_ResNet-50

python3 trt_demo.py --config experiments/siamrpn_r50_l234_dwxcorr/config.yaml --snapshot experiments/siamrpn_r50_l234_dwxcorr/model.pth --video_name video/2.flv

backbone_MobileNetv2

python3 trt_demo.py --config experiments/siamrpn_mobilev2_l234_dwxcorr/config.yaml --snapshot experiments/siamrpn_mobilev2_l234_dwxcorr/model.pth --video_name video/2.flv

Resources

Jetson Packages install list

miniforge(better than archiconda)

yolov4_siamrpn's People

Contributors

leolee99 avatar

Stargazers

snqx-lqh avatar Archie avatar Haonan Zhang avatar 马洪民 avatar

Watchers

 avatar

Forkers

noticeable

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.